Jeff
9eb78c602c
Update libzzuf/lib-stream.c
...
Added missing semi-colon so compile succeeds.
2015-07-21 15:39:30 -07:00
Sam Hocevar
1b20e81b94
zzuf: set program version to 0.14 and prepare release.
2015-05-30 18:48:35 +02:00
Sam Hocevar
baf828863b
win32: using <stdint.h> instead of defining our own types.
...
This used to be necessary back in 2008 but nowadays Visual Studio provides
enough C99 support for us.
2015-05-30 17:38:02 +02:00
Sam Hocevar
1c7ffee4a2
misc: fix a few minor issues found by static code analysis.
2015-05-30 16:42:25 +02:00
Sam Hocevar
73ec5ee6e4
sys: unsatisfying workaround for an issue with libasan.
2015-01-29 09:34:18 +01:00
Sam Hocevar
923fffb27f
win32: clean up some Windows code.
2015-01-29 03:12:36 +01:00
Sam Hocevar
bad2925778
libzzuf: protect library initialisation with a mutex.
2015-01-29 03:12:36 +01:00
Sam Hocevar
cc2cb7e305
build: remove spurious binary file.
2015-01-29 03:12:36 +01:00
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