638dc792a8Improve zzcat documentation and add commandline flags, including --help and --version.
Sam Hocevar
2010-01-12 23:53:18 +00:00
727b36b889Move zzcat to the main src/ directory. It's becoming mature enough to be distributed.
Sam Hocevar
2010-01-12 23:53:09 +00:00
ecfba2614eDistribute zzcat and start writing documentation for it.
Sam Hocevar
2010-01-08 01:28:02 +00:00
75c6d6f71eFix compilation warnings on FreeBSD.
Sam Hocevar
2010-01-08 01:17:23 +00:00
bd393a72e1Fix typos in configure.ac.
Sam Hocevar
2010-01-08 01:17:17 +00:00
5a9af3e183Try to fix FILE structure data on FreeBSD.
Sam Hocevar
2010-01-08 01:06:18 +00:00
23f4274f85Implement feof(x) in zzcat, to break out of a loop after EOF was hit x times.
Sam Hocevar
2010-01-08 00:48:33 +00:00
0977f25944Deprecate --deny <list> in favour of --allow !<list>.
Sam Hocevar
2010-01-08 00:48:27 +00:00
6e99bbbecbFix compilation warning due to kfreebsd’s fcntl.h defining FREAD.
Sam Hocevar
2010-01-08 00:48:21 +00:00
d21bc2cedcFile descriptors 0 to 2 may be network sockets, don’t rule them out.
Sam Hocevar
2010-01-08 00:48:12 +00:00
0d86e64a19Generate manual pages, so we can put the version number in them.
Sam Hocevar
2010-01-06 22:46:49 +00:00
45764eb21fAdd a special section in the testsuite for regressions.
Sam Hocevar
2010-01-06 02:00:49 +00:00
9e50361057Fix a bug caused by our seek() not understanding eglibc's behaviour.
Sam Hocevar
2010-01-06 02:00:41 +00:00
999a018e68Fix an overflow in our printf's NULL handling with %p.
Sam Hocevar
2010-01-06 00:48:47 +00:00
f6b1f32ebaMake seek() debug information more user-friendly.
Sam Hocevar
2010-01-06 00:35:49 +00:00
733920214cAvoid useless allocations in the network allow/deny code.
Sam Hocevar
2010-01-04 23:59:14 +00:00
509f293a99getline() and getdelim() must return -1 if EOF was reached and no bytes were read.
Sam Hocevar
2009-12-20 12:25:02 +00:00
d33737d585Try to call _zz_init() as soon as possible. Otherwise, preloaded libraries might be confused about half the calls actually working.
Sam Hocevar
2009-12-20 12:24:56 +00:00
c4bcc65505Buffer debug output to reduce the number of write() calls and allow to output information that was logged before the library was initialised.
Sam Hocevar
2009-12-20 12:24:50 +00:00
2f05014c09Avoid overlapping regions in our realloc's memcpy call.
Sam Hocevar
2009-12-20 12:24:41 +00:00
36d0ed7e57Synchronise VS 2010 solution with [4112].
Sam Hocevar
2009-12-16 16:15:40 +00:00
b93cc3838dMake the check-utils output slightly clearer.
Sam Hocevar
2009-12-14 16:10:15 +00:00
4050565ba5Fix a regression in the rlimit handling code caused by the myfork split.
Sam Hocevar
2009-12-14 03:33:53 +00:00
cbe0249118Rewrite zzcat to make it a lot more configurable.
Sam Hocevar
2009-12-14 02:55:31 +00:00
cae540ebf6Add a workaround in the test suite for a cowdancer limitation causing .ilist corruption and use ulimit instead of limit.
Sam Hocevar
2009-12-14 02:55:25 +00:00
4c195f17a1Limit coredumpsize to 0 in test scripts to avoid dumping cores at build time.
Sam Hocevar
2009-12-14 02:55:20 +00:00
877e2e38abAdd missing distributed files in Makefile.am.
Sam Hocevar
2009-12-14 02:55:11 +00:00
2b5d0105c4Refactor the stream diversions.
Sam Hocevar
2009-12-12 22:20:22 +00:00
2b3359f13bRefactor the shellcode generation to remove all hardcoded values.
Sam Hocevar
2009-12-12 22:20:16 +00:00
587088d48fMove process creation stuff to a separate myfork.c file.
Sam Hocevar
2009-12-12 22:20:11 +00:00
0715d2e16cFix DEBUG_STREAM compilation on Win32.
Sam Hocevar
2009-12-12 22:20:04 +00:00
28d017a2ecMinor Win32 compilation fix.
Sam Hocevar
2009-12-12 22:19:57 +00:00
606d50b39fReorganise source code to better separate zzuf and libzzuf. Note: the Win32 build is now broken.
Sam Hocevar
2009-12-12 22:19:47 +00:00
e0768d009bTry to work around the Vista ASLR feature by retrieving the executable's base address once it is loaded in memory.
Sam Hocevar
2009-12-09 00:28:28 +00:00
90daf7a5f0Try to reorganise the Win32 loader.
Sam Hocevar
2009-12-08 01:41:35 +00:00
83047925d2Declare diverted Win32 functions as __stdcall.
Sam Hocevar
2009-12-07 21:12:22 +00:00
21d6697bf0Give the fuzzed Win32 program a chance to display something even if the diverted function itself causes a crash.
Sam Hocevar
2009-12-07 18:35:45 +00:00
01765e2aefFix memory leaks and infinite loops in the Win32 launcher.
Sam Hocevar
2009-12-07 18:34:21 +00:00
abd4c9df92Synchronise Win32 port with recent config.h changes.
Sam Hocevar
2009-12-07 12:36:15 +00:00
f8c30fa9c0Cleaner solution for echoing the SOURCES variable.
Sam Hocevar
2009-11-26 01:19:08 +00:00
b9f9327716Reset offset position before most stdio call.
Sam Hocevar
2009-11-26 01:14:05 +00:00
c9150f4458Use fseeko64() everywhere when possible, instead of potential 32-bit versions.
Sam Hocevar
2009-11-26 01:13:58 +00:00
7026052971Minor refactoring in lib-stream.c.
Sam Hocevar
2009-11-25 00:42:32 +00:00
76c49fd7cfSynchronise msvc/config.h.
Sam Hocevar
2009-11-25 00:42:25 +00:00
9e89a7fde7More zzcat stuff.
Sam Hocevar
2009-11-25 00:42:17 +00:00
f1b8f58cd2We need to know the FILE buffer's current fill status. Implemented for glibc for now.
Sam Hocevar
2009-11-24 01:25:44 +00:00
008cbf6065More zzcat additions.
Sam Hocevar
2009-11-24 01:25:37 +00:00
efdb4997e2Fix a compilation warning in the network code.
Sam Hocevar
2009-11-23 11:16:03 +00:00
128bcc1770More fread() behaviour improvements, with documentation.
Sam Hocevar
2009-11-23 01:35:23 +00:00
13585b793eDocument the __srefill strategy in the source code.
Sam Hocevar
2009-11-23 00:27:11 +00:00
9ec47e4193Reimplement __uflow() under Linux. Unlocked IO now works on Linux, except in combination with getdelim()/getline().
Sam Hocevar
2009-11-23 00:27:05 +00:00
f36a3e475cMinor refactoring in zzcat.
Sam Hocevar
2009-11-23 00:26:59 +00:00
906ef22f84Add a second level of debugging for slightly less useful information.
Sam Hocevar
2009-11-23 00:26:53 +00:00
6b8b80e24dImprove the zzcat test suite with more unlocked IO functions.
Sam Hocevar
2009-11-22 18:54:49 +00:00
9b0c5acea1Add a check to __uflow(). This will hopefully help us fix the problem with recent sed versions.
Sam Hocevar
2009-11-22 18:54:43 +00:00
7ac20e160cRefactor dummy memory manager and fix a bug in realloc().
Sam Hocevar
2009-11-22 18:54:37 +00:00
2e6ce6d101Refactor zzcat for clarity.
Sam Hocevar
2009-11-22 18:54:31 +00:00
f324673387Check for typical source code issues in the testsuite.
Sam Hocevar
2009-11-22 18:54:25 +00:00
e6604121cbAdd a getc_unlocked method to zzcat.
Sam Hocevar
2009-11-22 18:54:17 +00:00
cbd74358b4Add mingw32 defines to msvc/config.h. Needs to be tuned furthermore.
Sam Hocevar
2009-11-20 22:47:38 +00:00
ec77adde22Use ftello64 instead of ftello to handle fseeko64.
Sam Hocevar
2009-11-20 22:47:31 +00:00
54c5a08770Ignore generated m4 files.
Sam Hocevar
2009-11-20 17:38:06 +00:00
48d91662dfVarious compilation and unit test fixes.
Sam Hocevar
2009-11-20 17:38:00 +00:00
5887dac5b1Make check-build executable.
Sam Hocevar
2009-11-20 13:00:28 +00:00
0f775dadc8Add 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.
Sam Hocevar
2009-11-20 12:06:17 +00:00
8b64626792Detect libzzuf soname at configure time rather than compile time.
Sam Hocevar
2009-11-19 00:51:32 +00:00
020c1f88f0Add a VS 2010 solution file and make the code build again for Win32.
Sam Hocevar
2009-11-18 13:23:58 +00:00
62b812b7dbCompilation fix for systems without get_unlocked().
Sam Hocevar
2009-10-27 23:10:22 +00:00
0bf7cb7815Add a getc_unlocked() variant to zzcat.
Sam Hocevar
2009-10-27 23:08:16 +00:00
bdc2b59eddAdd a getline() variant to zzcat.
Sam Hocevar
2009-10-27 22:44:09 +00:00
2c701d10b4Add missing svn:ignore properties.
Sam Hocevar
2009-10-27 00:07:10 +00:00
4bcc868331Undefine _XOPEN_SOURCE before redefining it.
Sam Hocevar
2009-10-27 00:01:25 +00:00
35c9e3efb9Append "/" to our LT_OBJDIR override.
Sam Hocevar
2009-08-07 00:24:31 +00:00
5d2b1b7682Old libtool versions don't define LT_OBJDIR. Adding an override for them.
Sam Hocevar
2009-08-07 00:09:03 +00:00
8f431fbd83Allow remote network host filtering, courtesy of Corentin Delorme.
Sam Hocevar
2009-08-06 21:17:00 +00:00
c586a72c73Use strcpy, not strcat.
Sam Hocevar
2009-08-06 20:40:35 +00:00
920ac1ae40Allow fromlen == NULL in the recvfrom() wrapper.
Sam Hocevar
2009-08-06 20:37:05 +00:00
f1639a47c4lib-mem.c: undefine various feature macros before redefining them.
Sam Hocevar
2009-08-06 20:36:58 +00:00
24e64e5edazzuf.c: use LT_OBJDIR instead of hardcoding ".libs/".
Sam Hocevar
2009-08-06 20:36:49 +00:00
ff3df16094lib-fd.c: accept() may accept NULL as the addrlen argument. Do not crash when faced with this situation. Closes#54.
Sam Hocevar
2009-03-20 23:28:51 +00:00
8512c8cb0bRename --max-cpu into --max-cputime to avoid confusion (fixes#44).
Sam Hocevar
2008-10-18 22:01:43 +00:00
2c4a8f36c5* zzuf.c: use atol() instead of atoi() for the --seed flag.
Sam Hocevar
2008-09-17 22:17:23 +00:00
c50a60d09d* zzuf.c: allow the use of -r=0 in addition to -r 0, and likewise for other flags with numerical arguments.
Sam Hocevar
2008-09-17 22:17:17 +00:00
4dd6f5011a* doc/zzuf.1: fix a typo in the manpage.
Sam Hocevar
2008-09-15 19:39:44 +00:00
9be83ce34d* zzuf.1: add a more advanced VLC fuzzing example.
Sam Hocevar
2008-08-25 19:28:25 +00:00
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.
Sam Hocevar
2008-07-23 23:40:13 +00:00
93cca9a5c1* zzuf.c: make the -B flag (max bytes) also work when fuzzing the standard input.
Sam Hocevar
2008-07-23 23:40:06 +00:00
f7d563f9ce* test/Makefile.am: add functions.inc to the distribution.
Sam Hocevar
2008-07-20 11:20:47 +00:00
4b777d9bb7* configure.ac: fix the __printf__ attribute macro.
Sam Hocevar
2008-07-20 11:16:06 +00:00
1fa7c66f0f* configure.ac: add a check for the __printf__ function attribute.
Sam Hocevar
2008-07-20 11:11:27 +00:00
523675e3d9* bug-div0.c: raise SIGFPE manually since Darwin won't trap on 1/0.
Sam Hocevar
2008-07-20 10:19:06 +00:00
3dd196f19f* fuzz.c: activate the fuzz() debug message, it may be verbose but I end up activating it all the time anyway.
Sam Hocevar
2008-07-20 10:10:35 +00:00
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.
Sam Hocevar
2008-07-20 10:10:31 +00:00
7778db7386* Factored the test suite to avoid excessive code duplication.
Sam Hocevar
2008-07-20 09:57:58 +00:00
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.
Sam Hocevar
2008-07-20 09:57:52 +00:00
b409dcecfd* lib-stream.c: fix a bug in the OS X __srefill implementation.
Sam Hocevar
2008-07-20 01:29:45 +00:00
ab3289d7d9* lib-stream.c: the BSDs' refill function is slightly different from the HP-UX and Solaris ones; fixing our implementation accordinly.
Sam Hocevar
2008-07-20 01:22:46 +00:00
3f43a5c034* Implement __srget on FreeBSD, which is yet another version of __srefill.
Sam Hocevar
2008-07-18 09:28:30 +00:00
9e7c992cac* lib-stream.c: fix the fread() implementation on FreeBSD 7.0.
Sam Hocevar
2008-07-18 09:28:26 +00:00
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.
Sam Hocevar
2008-07-18 09:28:22 +00:00