642 Commits

Author SHA1 Message Date
Sam Hocevar
60e1d2f001 test: use the -d flag in unit tests so that we can find potential
errors in the debug() function calls.
2015-01-19 23:10:14 +01:00
Sam Hocevar
d8d799cd81 misc: rename a lot of _zz_-prefixed variables. 2015-01-19 14:12:58 +01:00
Sam Hocevar
2c9718bd04 test: add a regression test for a bug in our mmap function. 2015-01-19 10:25:20 +01:00
Sam Hocevar
eb8c73c57d zzuf: add a -X flag for hexadecimal dumps. 2015-01-19 02:29:18 +01:00
Sam Hocevar
2738d9bd9d debug: try to output as much debug output as possible and make debug() thread safe
on Unix platforms.
2015-01-19 02:29:18 +01:00
Sam Hocevar
145e6afdd7 stream: rename a few functions for clarity. 2015-01-18 21:00:41 +01:00
Sam Hocevar
f69ee9d126 stream: fuzz the whole stream buffer upon opening. 2015-01-18 21:00:31 +01:00
Sam Hocevar
90efa83537 stream: refactor some streambuf getter functions. 2015-01-18 20:53:02 +01:00
Sam Hocevar
f9f1d70889 test: add a new regression test for a bug at stream EOF. 2015-01-18 18:25:18 +01:00
Sam Hocevar
53ece09b65 stream: rename “s” to “stream” for consistency. 2015-01-18 12:41:17 +01:00
Sam Hocevar
8aa27ed6c6 mem: fix a buffer overflow bug in the mmap() replacement. 2015-01-16 10:04:06 +01:00
Sam Hocevar
21cb084712 misc: factor several common tests into one must_fuzz_fd() function. 2015-01-16 10:04:06 +01:00
Sam Hocevar
4f7a76385a test: add a regression test for a bug in our mmap function. 2015-01-16 10:04:06 +01:00
Sam Hocevar
da669bb2b9 misc: C99 refactoring; put variable declarations closer to their first use 2015-01-15 21:29:20 +01:00
Sam Hocevar
6af0fb2c4b misc: typo of the ass. 2015-01-07 13:24:45 +01:00
Sam Hocevar
2a51af27be win32: some compilation fixes introduced by refactoring for Linux. 2015-01-06 18:09:43 +01:00
Sam Hocevar
1dcd34eef3 doc: update copyright and URLs. 2015-01-06 02:04:05 +01:00
Sam Hocevar
3feba75a3c zzuf: replace a critical section with a simple spinlock. 2015-01-06 00:44:05 +01:00
Sam Hocevar
c0ca87d5b2 misc: move a lot of generic stuff to a new util/ source subdirectory. 2015-01-06 00:43:34 +01:00
Sam Hocevar
e8abdc2bd0 win32: some mingw32/mingw64 warning and compilation fixes. 2015-01-05 23:20:51 +01:00
Sam Hocevar
7ade84442d build: remove ChangeLog, as it’s convenient enough to have it in Git. 2015-01-05 22:11:15 +01:00
Sam Hocevar
da98aa3dbc misc: various compilation warning fixes and copyright updates. 2015-01-05 19:13:02 +01:00
Sam Hocevar
585ec6d1ce libzzuf: fix fseeko64 parameter type. 2015-01-05 18:57:07 +01:00
Sam Hocevar
8b468ad504 fork: document more code and fix a bug reported by Will Newton. 2015-01-05 18:54:44 +01:00
Sam Hocevar
08d023b37c test: several fixes in the testsuite. 2015-01-05 18:11:43 +01:00
Sam Hocevar
53084c70a0 misc: now that Visual Studio supports it some 15 years later, switch to C99. 2015-01-05 16:07:00 +01:00
Sam Hocevar
1c2ccb1dc5 misc: minor fixes for compilation warnings. 2015-01-05 12:17:18 +01:00
Sam Hocevar
33cbf9c2eb win32: Windows-specific compilation fixes. 2015-01-05 12:17:17 +01:00
Sam Hocevar
15ad356faa win32: add spinlock implementation for Windows. 2015-01-05 11:48:15 +01:00
Sam Hocevar
39f48f37d6 win32: update to newer mingw compiler version. 2014-11-05 00:23:27 +00:00
Sam Hocevar
aba365f2a5 build: remove the libcaca dependency and embed code instead. 2014-11-05 00:23:22 +00:00
Sam Hocevar
eb2f7b3fe8 build: refresh build system. 2014-11-05 00:23:17 +00:00
Sam Hocevar
d979cd4fcd build: fix a few compilation warnings. 2014-11-05 00:23:12 +00:00
Sam Hocevar
fd7e90d858 core: add a lightweight spinlock to protect the list of file descriptors. 2014-10-31 10:48:46 +00:00
Sam Hocevar
01297f5a6e sys: fix coding style. 2014-10-31 10:48:33 +00:00
Kévin Szkudłapski
125f4ebc87 fix crash on windows 32-bit and compute_patch_size 2012-09-17 16:34:54 +00:00
Sam Hocevar
ae3f5c5a31 win32: add some console handling function diversions. 2012-08-23 14:10:27 +00:00
Sam Hocevar
96c7e71350 win32: add more explicit error messages and add support for 0xb8 opcode. 2012-08-23 11:21:31 +00:00
Kévin Szkudłapski
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 2012-08-20 12:27:26 +00:00
Sam Hocevar
60a9b3a67a build: fix compilation by including <wchar.h> and checking for regwexec. 2012-08-05 12:24:53 +00:00
Sam Hocevar
1684e8936e cosmetic: get rid of CRLF line endings. 2012-08-05 12:24:46 +00:00
Kévin Szkudłapski
6b45a58b96 add new hook for windows (CreateFileMapping(A|W), MapViewOfFile, ReadFileEx), re-enable option -U, start to port network on windows 2012-08-03 17:26:43 +00:00
Kévin Szkudłapski
22b40f04a0 port zzuf to win64 (amd64) 2012-08-02 14:50:21 +00:00
Kévin Szkudłapski
a50075a0f3 add regex feature for win32 2012-08-01 12:17:25 +00:00
Kévin Szkudłapski
7e045dfcd2 change the method of hooking, now we disassemble the beginning of the targeted function and insert a jump to the new function. 2012-07-31 13:54:47 +00:00
Kévin Szkudłapski
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) 2012-07-12 14:26:10 +00:00
Kévin Szkudłapski
9c9d0b082a win32 port starts to fuzz executable (only few functions related to file handling are implemented) 2012-07-11 17:39:13 +00:00
Kévin Szkudłapski
bc1087d8b0 fix tmp file creation on win32, start to implement handling of win32 exception with GetExitCodeProcess 2012-07-11 15:31:23 +00:00
Kévin Szkudłapski
8349e4746d on win32, use a named pipe and IOCP to read stdout, stderr and debugfd correctly. 2012-07-11 13:01:20 +00:00
Kévin Szkudłapski
714c203ece 2012-07-10 10:18:31 +00:00