412 Commits

Author SHA1 Message Date
Sam Hocevar
f1639a47c4 lib-mem.c: undefine various feature macros before redefining them. 2009-08-06 20:36:58 +00:00
Sam Hocevar
24e64e5eda zzuf.c: use LT_OBJDIR instead of hardcoding ".libs/". 2009-08-06 20:36:49 +00:00
Sam Hocevar
ff3df16094 lib-fd.c: accept() may accept NULL as the addrlen argument. Do not crash
when faced with this situation. Closes #54.
2009-03-20 23:28:51 +00:00
Sam Hocevar
8512c8cb0b Rename --max-cpu into --max-cputime to avoid confusion (fixes #44). 2008-10-18 22:01:43 +00:00
Sam Hocevar
2c4a8f36c5 * zzuf.c: use atol() instead of atoi() for the --seed flag. 2008-09-17 22:17:23 +00:00
Sam Hocevar
c50a60d09d * zzuf.c: allow the use of -r=0 in addition to -r 0, and likewise for
other flags with numerical arguments.
2008-09-17 22:17:17 +00:00
Sam Hocevar
4dd6f5011a * doc/zzuf.1: fix a typo in the manpage. 2008-09-15 19:39:44 +00:00
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