Sam Hocevar
9be83ce34d
* zzuf.1: add a more advanced VLC fuzzing example.
2008-08-25 19:28:25 +00:00
Sam Hocevar
4fced1a352
* Hack around to get HP-UX tools to work. It still fails the most nasty
...
zzcat test, though. But a more massive redesign is probably necessary.
2008-07-23 23:40:13 +00:00
Sam Hocevar
93cca9a5c1
* zzuf.c: make the -B flag (max bytes) also work when fuzzing the standard
...
input.
2008-07-23 23:40:06 +00:00
Sam Hocevar
f7d563f9ce
* test/Makefile.am: add functions.inc to the distribution.
2008-07-20 11:20:47 +00:00
Sam Hocevar
4b777d9bb7
* configure.ac: fix the __printf__ attribute macro.
2008-07-20 11:16:06 +00:00
Sam Hocevar
1fa7c66f0f
* configure.ac: add a check for the __printf__ function attribute.
2008-07-20 11:11:27 +00:00
Sam Hocevar
523675e3d9
* bug-div0.c: raise SIGFPE manually since Darwin won't trap on 1/0.
2008-07-20 10:19:06 +00:00
Sam Hocevar
3dd196f19f
* fuzz.c: activate the fuzz() debug message, it may be verbose but I end
...
up activating it all the time anyway.
2008-07-20 10:10:35 +00:00
Sam Hocevar
29e4f4b339
* lib-mem.c: with all the preprocessor crap that we now have in C files,
...
libc.h no longer cleanly includes on OS X and we need more preprocessor
crap to fix it. Adding _DARWIN_C_SOURCE.
2008-07-20 10:10:31 +00:00
Sam Hocevar
7778db7386
* Factored the test suite to avoid excessive code duplication.
2008-07-20 09:57:58 +00:00
Sam Hocevar
656321ddd4
* lib-stream.c: since __srefill is far more powerful than __srget, we only
...
reimplement the former on OS X and completely ignore the latter.
2008-07-20 09:57:52 +00:00
Sam Hocevar
b409dcecfd
* lib-stream.c: fix a bug in the OS X __srefill implementation.
2008-07-20 01:29:45 +00:00
Sam Hocevar
ab3289d7d9
* lib-stream.c: the BSDs' refill function is slightly different from the
...
HP-UX and Solaris ones; fixing our implementation accordinly.
2008-07-20 01:22:46 +00:00
Sam Hocevar
3f43a5c034
* Implement __srget on FreeBSD, which is yet another version of __srefill.
2008-07-18 09:28:30 +00:00
Sam Hocevar
9e7c992cac
* lib-stream.c: fix the fread() implementation on FreeBSD 7.0.
2008-07-18 09:28:26 +00:00
Sam Hocevar
1c4697013f
* check-utils: only perform 3 util test series, the rest was only here to
...
validate the RNG and we now have another test for that.
2008-07-18 09:28:22 +00:00
Sam Hocevar
d359cec8be
* lib-stream.c: only use the __srefill trick on OS X. HP-UX is too different.
2008-07-18 09:28:18 +00:00
Sam Hocevar
5feec8da6a
* lib-mem.c: fix FreeBSD 7.0 build by including <sys/cdefs.h> earlier on.
2008-07-18 09:28:14 +00:00
Sam Hocevar
8bbe4b289d
* Make the RNG test shorter... it should not vary across platforms anyway.
2008-07-18 09:28:10 +00:00
Sam Hocevar
9810cc153f
* Add slightly more complex modes to zzcat.
2008-07-18 09:28:06 +00:00
Sam Hocevar
d45a5121ef
* Better check for the __func__ keyword that does not rely on assumptions
...
about the compiler version.
2008-07-18 09:28:02 +00:00
Sam Hocevar
7dfb40b935
* Add simpler modes to zzcat to better analyse what's going on.
2008-07-18 09:27:56 +00:00
Sam Hocevar
0a902ca687
* bug-memory.c: fix the SIGSEGV unit test.
2008-07-16 23:24:06 +00:00
Sam Hocevar
80d9efbd29
* Support fsetpos64 on Linux.
2008-07-16 23:17:12 +00:00
Sam Hocevar
3c423c91de
* zzcat.c: partial fread() reads are undefined; avoid them in zzcat.
2008-07-16 23:17:07 +00:00
Sam Hocevar
7b03486164
* lib-mem.c: add pre-include macro to get getc_unlocked() on OpenSolaris.
2008-07-16 21:54:35 +00:00
Sam Hocevar
088d6f66e8
* lib-mem.c: add pre-include macros to get mmap and valloc on OpenSolaris.
2008-07-16 21:45:44 +00:00
Sam Hocevar
c11d1067a2
* zzuf.c: rename sig2str to sig2name; the former is a Solaris libc symbol.
2008-07-16 21:45:40 +00:00
Sam Hocevar
6c23cd7e29
* Another fucked commit... synchronise config.h and lib-stream.c.
2008-07-16 21:41:27 +00:00
Sam Hocevar
f9f17a64a3
* lib-stream.c: try to make the __filbuf() implementation portable across
...
HP-UX and OpenSolaris.
2008-07-16 21:37:12 +00:00
Sam Hocevar
36726dcced
* Implement freopen64, fsetpos64 and fseeko64 for OpenSolaris.
2008-07-16 21:24:09 +00:00
Sam Hocevar
66717397fa
* check-utils: use tail -n X or tail -X depending on the platform.
2008-07-16 21:03:37 +00:00
Sam Hocevar
22cd9da8fe
* bootstrap: update bootstrapping script for OpenSolaris compatibility.
...
* check-utils: do not use grep -q, OpenSolaris doesn't know about it.
2008-07-16 20:53:14 +00:00
Sam Hocevar
48e7b55dfe
* Oops, forgot to check in check-md5.
2008-07-16 20:36:58 +00:00
Sam Hocevar
4a1b32c6fd
* Add a unit test for MD5 hashes.
2008-07-16 20:36:14 +00:00
Sam Hocevar
63b3a8e8a0
* Add a bunch of unit tests to check for zzuf basic capabilities: SIGSEGV
...
and SIGFPE detection, memory exhaustion detection.
2008-07-16 17:23:37 +00:00
Sam Hocevar
bd586d1a93
* mygetopt.c: fix a parsing issue with short options.
2008-07-16 17:23:33 +00:00
Sam Hocevar
4cda0e67f5
* Fix a few HP-UX warnings caused by missing headers.
2008-07-16 17:23:29 +00:00
Sam Hocevar
b4541f895b
* Split the test suite into the RNG test and the Unix utils test.
2008-07-16 17:23:24 +00:00
Sam Hocevar
a5dcebc637
* zzuf.c: retrieve library object name from libtool's .la file so we don't
...
need to hardcode .so, .sl, .dylib etc. for various platforms.
2008-07-16 09:52:08 +00:00
Sam Hocevar
3c6188a48b
* Implement __srefill() for full HP-UX support on parisc-gcc.
2008-07-16 09:52:02 +00:00
Sam Hocevar
d5734170b3
* zzcat.c: compilation fix for missing headers.
2008-07-16 09:51:58 +00:00
Sam Hocevar
612d830111
* testsuite.h: do not test for grep -a if the option is unknown.
2008-07-16 09:51:53 +00:00
Sam Hocevar
abeb8d87e0
* Add a few _INCLUDE_POSIX_SOURCE defines here and there so that we build
...
out of the box with HP-UX's c99 compiler.
2008-07-15 21:34:14 +00:00
Sam Hocevar
08d6923f3a
* testsuite.sh: use printf instead of echo -n for better portability.
2008-07-15 20:16:15 +00:00
Sam Hocevar
8b1f5bba2c
* Implement additional functions required on HP-UX: __fopen64, __fseeko64,
...
__freopen64, __open64, __lseek64.
2008-07-15 20:16:11 +00:00
Sam Hocevar
b448cd4759
* Build on HP-UX systems: disable unsupported warning flags, define
...
_XOPEN_SOURCE_EXTENDED where appropriate, use AC_C_INLINE to avoid using
the inline keyword when unsupported, and use #pragma INIT for library
initialisation routines.
2008-07-15 20:16:06 +00:00
Sam Hocevar
88ddd7f4ac
* configure.ac: do not use -fno-strength-reduce -fomit-frame-pointer,
...
they're pretty useless for our project.
2008-07-15 20:16:02 +00:00
Sam Hocevar
d79a717daa
* zzuf.c: reformated the licensing information for zzuf -V.
2008-07-15 20:15:58 +00:00
Sam Hocevar
2064bc7fcf
* lib-stream.c: remove an unused variable.
2008-07-15 20:15:53 +00:00