689 Commits

Author SHA1 Message Date
Sam Hocevar
638dc792a8 Improve zzcat documentation and add commandline flags, including --help
and --version.
2010-01-12 23:53:18 +00:00
Sam Hocevar
727b36b889 Move zzcat to the main src/ directory. It's becoming mature enough to be
distributed.
2010-01-12 23:53:09 +00:00
Sam Hocevar
ecfba2614e Distribute zzcat and start writing documentation for it. 2010-01-08 01:28:02 +00:00
Sam Hocevar
75c6d6f71e Fix compilation warnings on FreeBSD. 2010-01-08 01:17:23 +00:00
Sam Hocevar
bd393a72e1 Fix typos in configure.ac. 2010-01-08 01:17:17 +00:00
Sam Hocevar
5a9af3e183 Try to fix FILE structure data on FreeBSD. 2010-01-08 01:06:18 +00:00
Sam Hocevar
23f4274f85 Implement feof(x) in zzcat, to break out of a loop after EOF was hit x times. 2010-01-08 00:48:33 +00:00
Sam Hocevar
0977f25944 Deprecate --deny <list> in favour of --allow !<list>. 2010-01-08 00:48:27 +00:00
Sam Hocevar
6e99bbbecb Fix compilation warning due to kfreebsd’s fcntl.h defining FREAD. 2010-01-08 00:48:21 +00:00
Sam Hocevar
d21bc2cedc File descriptors 0 to 2 may be network sockets, don’t rule them out. 2010-01-08 00:48:12 +00:00
Sam Hocevar
0d86e64a19 Generate manual pages, so we can put the version number in them. 2010-01-06 22:46:49 +00:00
Sam Hocevar
45764eb21f Add a special section in the testsuite for regressions. 2010-01-06 02:00:49 +00:00
Sam Hocevar
9e50361057 Fix a bug caused by our seek() not understanding eglibc's behaviour. 2010-01-06 02:00:41 +00:00
Sam Hocevar
999a018e68 Fix an overflow in our printf's NULL handling with %p. 2010-01-06 00:48:47 +00:00
Sam Hocevar
f6b1f32eba Make seek() debug information more user-friendly. 2010-01-06 00:35:49 +00:00
Sam Hocevar
733920214c Avoid useless allocations in the network allow/deny code. 2010-01-04 23:59:14 +00:00
Sam Hocevar
509f293a99 getline() and getdelim() must return -1 if EOF was reached and no bytes
were read.
2009-12-20 12:25:02 +00:00
Sam Hocevar
d33737d585 Try to call _zz_init() as soon as possible. Otherwise, preloaded libraries
might be confused about half the calls actually working.
2009-12-20 12:24:56 +00:00
Sam Hocevar
c4bcc65505 Buffer debug output to reduce the number of write() calls and allow to
output information that was logged before the library was initialised.
2009-12-20 12:24:50 +00:00
Sam Hocevar
2f05014c09 Avoid overlapping regions in our realloc's memcpy call. 2009-12-20 12:24:41 +00:00
Sam Hocevar
36d0ed7e57 Synchronise VS 2010 solution with [4112]. 2009-12-16 16:15:40 +00:00
Sam Hocevar
b93cc3838d Make the check-utils output slightly clearer. 2009-12-14 16:10:15 +00:00
Sam Hocevar
4050565ba5 Fix a regression in the rlimit handling code caused by the myfork split. 2009-12-14 03:33:53 +00:00
Sam Hocevar
cbe0249118 Rewrite zzcat to make it a lot more configurable. 2009-12-14 02:55:31 +00:00
Sam Hocevar
cae540ebf6 Add a workaround in the test suite for a cowdancer limitation causing .ilist
corruption and use ulimit instead of limit.
2009-12-14 02:55:25 +00:00
Sam Hocevar
4c195f17a1 Limit coredumpsize to 0 in test scripts to avoid dumping cores at build time. 2009-12-14 02:55:20 +00:00
Sam Hocevar
877e2e38ab Add missing distributed files in Makefile.am. 2009-12-14 02:55:11 +00:00
Sam Hocevar
2b5d0105c4 Refactor the stream diversions. 2009-12-12 22:20:22 +00:00
Sam Hocevar
2b3359f13b Refactor the shellcode generation to remove all hardcoded values. 2009-12-12 22:20:16 +00:00
Sam Hocevar
587088d48f Move process creation stuff to a separate myfork.c file. 2009-12-12 22:20:11 +00:00
Sam Hocevar
0715d2e16c Fix DEBUG_STREAM compilation on Win32. 2009-12-12 22:20:04 +00:00
Sam Hocevar
28d017a2ec Minor Win32 compilation fix. 2009-12-12 22:19:57 +00:00
Sam Hocevar
606d50b39f Reorganise source code to better separate zzuf and libzzuf. Note: the Win32
build is now broken.
2009-12-12 22:19:47 +00:00
Sam Hocevar
e0768d009b Try to work around the Vista ASLR feature by retrieving the executable's
base address once it is loaded in memory.
2009-12-09 00:28:28 +00:00
Sam Hocevar
90daf7a5f0 Try to reorganise the Win32 loader. 2009-12-08 01:41:35 +00:00
Sam Hocevar
83047925d2 Declare diverted Win32 functions as __stdcall. 2009-12-07 21:12:22 +00:00
Sam Hocevar
21d6697bf0 Give the fuzzed Win32 program a chance to display something even
if the diverted function itself causes a crash.
2009-12-07 18:35:45 +00:00
Sam Hocevar
01765e2aef Fix memory leaks and infinite loops in the Win32 launcher. 2009-12-07 18:34:21 +00:00
Sam Hocevar
abd4c9df92 Synchronise Win32 port with recent config.h changes. 2009-12-07 12:36:15 +00:00
Sam Hocevar
f8c30fa9c0 Cleaner solution for echoing the SOURCES variable. 2009-11-26 01:19:08 +00:00
Sam Hocevar
b9f9327716 Reset offset position before most stdio call. 2009-11-26 01:14:05 +00:00
Sam Hocevar
c9150f4458 Use fseeko64() everywhere when possible, instead of potential 32-bit versions. 2009-11-26 01:13:58 +00:00
Sam Hocevar
7026052971 Minor refactoring in lib-stream.c. 2009-11-25 00:42:32 +00:00
Sam Hocevar
76c49fd7cf Synchronise msvc/config.h. 2009-11-25 00:42:25 +00:00
Sam Hocevar
9e89a7fde7 More zzcat stuff. 2009-11-25 00:42:17 +00:00
Sam Hocevar
f1b8f58cd2 We need to know the FILE buffer's current fill status. Implemented for
glibc for now.
2009-11-24 01:25:44 +00:00
Sam Hocevar
008cbf6065 More zzcat additions. 2009-11-24 01:25:37 +00:00
Sam Hocevar
efdb4997e2 Fix a compilation warning in the network code. 2009-11-23 11:16:03 +00:00
Sam Hocevar
128bcc1770 More fread() behaviour improvements, with documentation. 2009-11-23 01:35:23 +00:00
Sam Hocevar
13585b793e Document the __srefill strategy in the source code. 2009-11-23 00:27:11 +00:00