ad11cdd72a
libzzuf: fix compiler warnings by adding declarations for functions that are unlikely to be exposed by system headers.
Sam Hocevar
2015-01-26 01:29:51 +01:00
56b013a605
Allow debug_str to be provided a negative length count for convenience.
Sam Hocevar
2015-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 Hocevar
2015-01-21 08:11:35 +01:00
13f63b0419
doc: group command line options by category in the man page.
Sam Hocevar
2015-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 Hocevar
2015-01-20 01:32:51 +01:00
1d0fd3c370
debug: minor tweak to the debug string formatter.
Sam Hocevar
2015-01-20 00:08:59 +01:00
a5bb4b567e
debug: refactor a lot of buffer debug functions using a shared formatter.
Sam Hocevar
2015-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 Hocevar
2015-01-19 23:10:14 +01:00
d8d799cd81
misc: rename a lot of _zz_-prefixed variables.
Sam Hocevar
2015-01-19 14:12:58 +01:00
2c9718bd04
test: add a regression test for a bug in our mmap function.
Sam Hocevar
2015-01-16 01:12:46 +01:00
eb8c73c57d
zzuf: add a -X flag for hexadecimal dumps.
Sam Hocevar
2015-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 Hocevar
2015-01-18 21:49:01 +01:00
145e6afdd7
stream: rename a few functions for clarity.
Sam Hocevar
2015-01-18 20:59:36 +01:00
f69ee9d126
stream: fuzz the whole stream buffer upon opening.
Sam Hocevar
2015-01-18 20:55:41 +01:00
90efa83537
stream: refactor some streambuf getter functions.
Sam Hocevar
2015-01-18 20:53:02 +01:00
f9f1d70889
test: add a new regression test for a bug at stream EOF.
Sam Hocevar
2015-01-18 14:39:34 +01:00
53ece09b65
stream: rename “s” to “stream” for consistency.
Sam Hocevar
2015-01-18 12:41:17 +01:00
8aa27ed6c6
mem: fix a buffer overflow bug in the mmap() replacement.
Sam Hocevar
2015-01-16 03:46:21 +01:00
21cb084712
misc: factor several common tests into one must_fuzz_fd() function.
Sam Hocevar
2015-01-16 03:14:03 +01:00
4f7a76385a
test: add a regression test for a bug in our mmap function.
Sam Hocevar
2015-01-16 01:12:46 +01:00
da669bb2b9
misc: C99 refactoring; put variable declarations closer to their first use
Sam Hocevar
2015-01-15 21:29:20 +01:00
6af0fb2c4b
misc: typo of the ass.
Sam Hocevar
2015-01-07 12:08:30 +01:00
2a51af27be
win32: some compilation fixes introduced by refactoring for Linux.
Sam Hocevar
2015-01-06 18:09:40 +01:00
1dcd34eef3
doc: update copyright and URLs.
Sam Hocevar
2015-01-06 02:04:05 +01:00
3feba75a3c
zzuf: replace a critical section with a simple spinlock.
Sam Hocevar
2015-01-06 00:44:05 +01:00
c0ca87d5b2
misc: move a lot of generic stuff to a new util/ source subdirectory.
Sam Hocevar
2015-01-06 00:36:24 +01:00
e8abdc2bd0
win32: some mingw32/mingw64 warning and compilation fixes.
Sam Hocevar
2015-01-05 22:49:06 +01:00
7ade84442d
build: remove ChangeLog, as it’s convenient enough to have it in Git.
Sam Hocevar
2015-01-05 22:11:15 +01:00
da98aa3dbc
misc: various compilation warning fixes and copyright updates.
Sam Hocevar
2015-01-05 18:57:40 +01:00
8b468ad504
fork: document more code and fix a bug reported by Will Newton.
Sam Hocevar
2015-01-05 18:52:49 +01:00
08d023b37c
test: several fixes in the testsuite.
Sam Hocevar
2015-01-05 18:11:43 +01:00
53084c70a0
misc: now that Visual Studio supports it some 15 years later, switch to C99.
Sam Hocevar
2015-01-05 16:02:51 +01:00
1c2ccb1dc5
misc: minor fixes for compilation warnings.
Sam Hocevar
2015-01-05 11:49:38 +01:00
33cbf9c2eb
win32: Windows-specific compilation fixes.
Sam Hocevar
2015-01-05 11:58:37 +01:00
15ad356faa
win32: add spinlock implementation for Windows.
Sam Hocevar
2015-01-05 11:29:10 +01:00
39f48f37d6
win32: update to newer mingw compiler version.
Sam Hocevar
2014-11-05 00:23:27 +00:00
aba365f2a5
build: remove the libcaca dependency and embed code instead.
Sam Hocevar
2014-11-05 00:23:22 +00:00
eb2f7b3fe8
build: refresh build system.
Sam Hocevar
2014-11-05 00:23:17 +00:00
d979cd4fcd
build: fix a few compilation warnings.
Sam Hocevar
2014-11-05 00:23:12 +00:00
fd7e90d858
core: add a lightweight spinlock to protect the list of file descriptors.
Sam Hocevar
2014-10-31 10:48:46 +00:00
01297f5a6e
sys: fix coding style.
Sam Hocevar
2014-10-31 10:48:33 +00:00
125f4ebc87
fix crash on windows 32-bit and compute_patch_size
Kévin Szkudłapski
2012-09-17 16:34:54 +00:00
ae3f5c5a31
win32: add some console handling function diversions.
Sam Hocevar
2012-08-23 14:10:27 +00:00
96c7e71350
win32: add more explicit error messages and add support for 0xb8 opcode.
Sam Hocevar
2012-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łapski
2012-08-20 12:27:26 +00:00
60a9b3a67a
build: fix compilation by including <wchar.h> and checking for regwexec.
Sam Hocevar
2012-08-05 12:24:53 +00:00
1684e8936e
cosmetic: get rid of CRLF line endings.
Sam Hocevar
2012-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łapski
2012-08-03 17:26:43 +00:00
22b40f04a0
port zzuf to win64 (amd64)
Kévin Szkudłapski
2012-08-02 14:50:21 +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łapski
2012-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łapski
2012-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łapski
2012-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łapski
2012-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łapski
2012-07-11 13:01:20 +00:00