536 Commits

Author SHA1 Message Date
Sam Hocevar
6b8b80e24d Improve the zzcat test suite with more unlocked IO functions. 2009-11-22 18:54:49 +00:00
Sam Hocevar
9b0c5acea1 Add a check to __uflow(). This will hopefully help us fix the problem with
recent sed versions.
2009-11-22 18:54:43 +00:00
Sam Hocevar
7ac20e160c Refactor dummy memory manager and fix a bug in realloc(). 2009-11-22 18:54:37 +00:00
Sam Hocevar
2e6ce6d101 Refactor zzcat for clarity. 2009-11-22 18:54:31 +00:00
Sam Hocevar
f324673387 Check for typical source code issues in the testsuite. 2009-11-22 18:54:25 +00:00
Sam Hocevar
e6604121cb Add a getc_unlocked method to zzcat. 2009-11-22 18:54:17 +00:00
Sam Hocevar
cbd74358b4 Add mingw32 defines to msvc/config.h. Needs to be tuned furthermore. 2009-11-20 22:47:38 +00:00
Sam Hocevar
ec77adde22 Use ftello64 instead of ftello to handle fseeko64. 2009-11-20 22:47:31 +00:00
Sam Hocevar
54c5a08770 Ignore generated m4 files. 2009-11-20 17:38:06 +00:00
Sam Hocevar
48d91662df Various compilation and unit test fixes. 2009-11-20 17:38:00 +00:00
Sam Hocevar
5887dac5b1 Make check-build executable. 2009-11-20 13:00:28 +00:00
Sam Hocevar
0f775dadc8 Add zznop, a small test program to help debug the Win32 port.
Also add check-build from libcaca to test that msvc/config.h is
up to date.
2009-11-20 12:06:17 +00:00
Sam Hocevar
8b64626792 Detect libzzuf soname at configure time rather than compile time. 2009-11-19 00:51:32 +00:00
Sam Hocevar
020c1f88f0 Add a VS 2010 solution file and make the code build again for Win32. 2009-11-18 13:23:58 +00:00
Sam Hocevar
62b812b7db Compilation fix for systems without get_unlocked(). 2009-10-27 23:10:22 +00:00
Sam Hocevar
0bf7cb7815 Add a getc_unlocked() variant to zzcat. 2009-10-27 23:08:16 +00:00
Sam Hocevar
bdc2b59edd Add a getline() variant to zzcat. 2009-10-27 22:44:09 +00:00
Sam Hocevar
2c701d10b4 Add missing svn:ignore properties. 2009-10-27 00:07:10 +00:00
Sam Hocevar
4bcc868331 Undefine _XOPEN_SOURCE before redefining it. 2009-10-27 00:01:25 +00:00
Sam Hocevar
35c9e3efb9 Append "/" to our LT_OBJDIR override. 2009-08-07 00:24:31 +00:00
Sam Hocevar
5d2b1b7682 Old libtool versions don't define LT_OBJDIR. Adding an override for them. 2009-08-07 00:09:03 +00:00
Sam Hocevar
8f431fbd83 Allow remote network host filtering, courtesy of Corentin Delorme. 2009-08-06 21:17:00 +00:00
Sam Hocevar
c586a72c73 Use strcpy, not strcat. 2009-08-06 20:40:35 +00:00
Sam Hocevar
920ac1ae40 Allow fromlen == NULL in the recvfrom() wrapper. 2009-08-06 20:37:05 +00:00
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