bad2925778
libzzuf: protect library initialisation with a mutex.
Sam Hocevar2015-01-29 02:21:08 +01:00
cc2cb7e305
build: remove spurious binary file.
Sam Hocevar2015-01-29 03:11:54 +01:00
ad11cdd72a
libzzuf: fix compiler warnings by adding declarations for functions that are unlikely to be exposed by system headers.
Sam Hocevar2015-01-26 01:29:51 +01:00
56b013a605
Allow debug_str to be provided a negative length count for convenience.
Sam Hocevar2015-01-24 16:01:29 +01:00
c88842f9a4
zzuf: fix a minor inconsistency between short and long options when compiled on a system with a useless rlimit().
Sam Hocevar2015-01-21 08:11:35 +01:00
13f63b0419
doc: group command line options by category in the man page.
Sam Hocevar2015-01-21 08:10:37 +01:00
6ccb82a9ff
stream: fix a nasty bug that completely messed up with the streambuf structure tracking. Now when the new streambuf position is exactly at the end of the previous streambuf, we only fuzz the streambuf if new data is available (i.e. when streambuf_count != 0); otherwise, it just means that we’re at the end of the file, waiting for new read orders.
Sam Hocevar2015-01-20 01:32:51 +01:00
1d0fd3c370
debug: minor tweak to the debug string formatter.
Sam Hocevar2015-01-20 00:08:59 +01:00
a5bb4b567e
debug: refactor a lot of buffer debug functions using a shared formatter.
Sam Hocevar2015-01-19 23:54:58 +01:00
60e1d2f001
test: use the -d flag in unit tests so that we can find potential errors in the debug() function calls.
Sam Hocevar2015-01-19 23:10:14 +01:00
d8d799cd81
misc: rename a lot of _zz_-prefixed variables.
Sam Hocevar2015-01-19 14:12:58 +01:00
2c9718bd04
test: add a regression test for a bug in our mmap function.
Sam Hocevar2015-01-16 01:12:46 +01:00
eb8c73c57d
zzuf: add a -X flag for hexadecimal dumps.
Sam Hocevar2015-01-19 00:26:05 +01:00
2738d9bd9d
debug: try to output as much debug output as possible and make debug() thread safe on Unix platforms.
Sam Hocevar2015-01-18 21:49:01 +01:00
145e6afdd7
stream: rename a few functions for clarity.
Sam Hocevar2015-01-18 20:59:36 +01:00
f69ee9d126
stream: fuzz the whole stream buffer upon opening.
Sam Hocevar2015-01-18 20:55:41 +01:00
90efa83537
stream: refactor some streambuf getter functions.
Sam Hocevar2015-01-18 20:53:02 +01:00
f9f1d70889
test: add a new regression test for a bug at stream EOF.
Sam Hocevar2015-01-18 14:39:34 +01:00
53ece09b65
stream: rename “s” to “stream” for consistency.
Sam Hocevar2015-01-18 12:41:17 +01:00
8aa27ed6c6
mem: fix a buffer overflow bug in the mmap() replacement.
Sam Hocevar2015-01-16 03:46:21 +01:00
21cb084712
misc: factor several common tests into one must_fuzz_fd() function.
Sam Hocevar2015-01-16 03:14:03 +01:00
4f7a76385a
test: add a regression test for a bug in our mmap function.
Sam Hocevar2015-01-16 01:12:46 +01:00
da669bb2b9
misc: C99 refactoring; put variable declarations closer to their first use
Sam Hocevar2015-01-15 21:29:20 +01:00
ae3f5c5a31
win32: add some console handling function diversions.
Sam Hocevar2012-08-23 14:10:27 +00:00
96c7e71350
win32: add more explicit error messages and add support for 0xb8 opcode.
Sam Hocevar2012-08-23 11:21:31 +00:00
b77afc7583
add relocate_hook to improve api hooking, fix dll name string comparison (no case sensitive), fix used after free on win32, add more hooks related to async file access
Kévin Szkudłapski2012-08-20 12:27:26 +00:00
60a9b3a67a
build: fix compilation by including <wchar.h> and checking for regwexec.
Sam Hocevar2012-08-05 12:24:53 +00:00
1684e8936e
cosmetic: get rid of CRLF line endings.
Sam Hocevar2012-08-05 12:24:46 +00:00
6b45a58b96
add new hook for windows (CreateFileMapping(A|W), MapViewOfFile, ReadFileEx), re-enable option -U, start to port network on windows
Kévin Szkudłapski2012-08-03 17:26:43 +00:00
7e045dfcd2
change the method of hooking, now we disassemble the beginning of the targeted function and insert a jump to the new function.
Kévin Szkudłapski2012-07-31 13:54:47 +00:00
fca5de058a
start to implement hotpatch hook on win32 port, but some API don't look to use it for some reason (e.g. kernel32!ReadFile)
Kévin Szkudłapski2012-07-12 14:26:10 +00:00
9c9d0b082a
win32 port starts to fuzz executable (only few functions related to file handling are implemented)
Kévin Szkudłapski2012-07-11 17:39:13 +00:00
bc1087d8b0
fix tmp file creation on win32, start to implement handling of win32 exception with GetExitCodeProcess
Kévin Szkudłapski2012-07-11 15:31:23 +00:00
8349e4746d
on win32, use a named pipe and IOCP to read stdout, stderr and debugfd correctly.
Kévin Szkudłapski2012-07-11 13:01:20 +00:00