649 Commits

Author SHA1 Message Date
Sam Hocevar
ad11cdd72a libzzuf: fix compiler warnings by adding declarations for functions
that are unlikely to be exposed by system headers.
2015-01-26 01:29:53 +01:00
Sam Hocevar
56b013a605 Allow debug_str to be provided a negative length count for convenience. 2015-01-24 16:01:29 +01:00
Sam Hocevar
c88842f9a4 zzuf: fix a minor inconsistency between short and long options when
compiled on a system with a useless rlimit().
2015-01-21 08:11:37 +01:00
Sam Hocevar
13f63b0419 doc: group command line options by category in the man page. 2015-01-21 08:10:37 +01:00
Sam Hocevar
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.
2015-01-20 11:20:23 +01:00
Sam Hocevar
1d0fd3c370 debug: minor tweak to the debug string formatter. 2015-01-20 00:08:59 +01:00
Sam Hocevar
a5bb4b567e debug: refactor a lot of buffer debug functions using a shared formatter. 2015-01-19 23:54:58 +01:00
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