Commit Graph

270 Commits

Author SHA1 Message Date
Sam Hocevar
80d9efbd29 * Support fsetpos64 on Linux. 2008-07-16 23:17:12 +00:00
Sam Hocevar
7b03486164 * lib-mem.c: add pre-include macro to get getc_unlocked() on OpenSolaris. 2008-07-16 21:54:35 +00:00
Sam Hocevar
088d6f66e8 * lib-mem.c: add pre-include macros to get mmap and valloc on OpenSolaris. 2008-07-16 21:45:44 +00:00
Sam Hocevar
c11d1067a2 * zzuf.c: rename sig2str to sig2name; the former is a Solaris libc symbol. 2008-07-16 21:45:40 +00:00
Sam Hocevar
6c23cd7e29 * Another fucked commit... synchronise config.h and lib-stream.c. 2008-07-16 21:41:27 +00:00
Sam Hocevar
f9f17a64a3 * lib-stream.c: try to make the __filbuf() implementation portable across
HP-UX and OpenSolaris.
2008-07-16 21:37:12 +00:00
Sam Hocevar
36726dcced * Implement freopen64, fsetpos64 and fseeko64 for OpenSolaris. 2008-07-16 21:24:09 +00:00
Sam Hocevar
bd586d1a93 * mygetopt.c: fix a parsing issue with short options. 2008-07-16 17:23:33 +00:00
Sam Hocevar
4cda0e67f5 * Fix a few HP-UX warnings caused by missing headers. 2008-07-16 17:23:29 +00:00
Sam Hocevar
a5dcebc637 * zzuf.c: retrieve library object name from libtool's .la file so we don't
need to hardcode .so, .sl, .dylib etc. for various platforms.
2008-07-16 09:52:08 +00:00
Sam Hocevar
3c6188a48b * Implement __srefill() for full HP-UX support on parisc-gcc. 2008-07-16 09:52:02 +00:00
Sam Hocevar
abeb8d87e0 * Add a few _INCLUDE_POSIX_SOURCE defines here and there so that we build
out of the box with HP-UX's c99 compiler.
2008-07-15 21:34:14 +00:00
Sam Hocevar
8b1f5bba2c * Implement additional functions required on HP-UX: __fopen64, __fseeko64,
__freopen64, __open64, __lseek64.
2008-07-15 20:16:11 +00:00
Sam Hocevar
b448cd4759 * Build on HP-UX systems: disable unsupported warning flags, define
_XOPEN_SOURCE_EXTENDED where appropriate, use AC_C_INLINE to avoid using
    the inline keyword when unsupported, and use #pragma INIT for library
    initialisation routines.
2008-07-15 20:16:06 +00:00
Sam Hocevar
d79a717daa * zzuf.c: reformated the licensing information for zzuf -V. 2008-07-15 20:15:58 +00:00
Sam Hocevar
2064bc7fcf * lib-stream.c: remove an unused variable. 2008-07-15 20:15:53 +00:00
Sam Hocevar
cacdf20050 * Fix a compilation issue on FreeBSD by defining _BSD_SOURCE and including
<sys/cdefs.h>.
2008-07-15 20:15:47 +00:00
Sam Hocevar
27983605ca * Set a default maximum memory usage value to avoid excessive swapping. 2008-07-15 20:15:35 +00:00
Sam Hocevar
7711565c5d * Avoid a potential shared library attack by never looking for libzzuf in
the current directory.
2008-06-20 06:05:13 +00:00
Sam Hocevar
23ba2c6d16 * Fix a crash in the realloc() wrapper occurring when dlsym() or dlopen()
call realloc() with a NULL pointer.
2008-06-10 16:21:22 +00:00
Sam Hocevar
a530547a92 * Do not try to free() on buffers that have been allocated with the real
malloc, or we may crash unexpectedly, for instance if dlsym("free") calls
    malloc() then free() while free hasn't been loaded yet.
2008-06-10 16:21:17 +00:00
Sam Hocevar
ed7240392c * Change -M to mean mebibytes instead of megabytes, because I'm a fucking
pedant.
2008-05-19 11:25:05 +00:00
Sam Hocevar
7acd670a08 * Change -F to -j, to mimic make. 2008-05-19 11:25:01 +00:00
Sam Hocevar
6dccd9a9e5 * Allow to omit the right-hand side of the seed range, for indefinite
fuzzing attempts.
2008-05-19 11:24:56 +00:00
Sam Hocevar
9634d50cf7 * Add SIGPIPE to the list of crashing signals. 2008-05-19 11:24:46 +00:00
Sam Hocevar
1c69645f86 * Fix an invalid cast on the Alpha architecture caused by sockaddr_in*
having larger alignment requirements than sockaddr*.
2008-05-19 11:24:41 +00:00
Sam Hocevar
b2b6b59b71 * Minor memory and speed optimisation. 2008-05-18 19:56:48 +00:00
Sam Hocevar
dd53242b2c * Start working on the internal code documentation. 2008-05-18 18:13:45 +00:00
Sam Hocevar
c45ecef2a9 * Implement getchar() and getchar_unlocked(). 2008-05-18 12:38:32 +00:00
Sam Hocevar
70b02f704c * Minor changes: add quotes between launched program name, update copyright. 2008-05-18 09:45:53 +00:00
Sam Hocevar
c06d381315 * Make sure the fgets_unlocked() reimplementation uses fgetc_unlocked(),
not fgetc().
2008-05-18 09:45:48 +00:00
Sam Hocevar
03cf326236 * Implement fgets_unlocked() and fread_unlocked(). 2008-05-17 23:10:47 +00:00
Sam Hocevar
8e56c6de5a * Implement getc_unlocked() and fgetc_unlocked(). 2008-05-17 23:10:41 +00:00
Sam Hocevar
e08dda0acd * No longer require the "--" trick to separate zzuf's flags and the called
program's.
2008-05-17 13:40:40 +00:00
Sam Hocevar
78166aa5b0 * Cosmetic: remove trailing spaces from the source code. 2008-05-16 22:01:18 +00:00
Sam Hocevar
cee4f2fc92 * Improve overall randomness. Now even close seeds have very different
behaviours on which bits are flipped.
2008-05-16 22:01:07 +00:00
Sam Hocevar
9788f1b62b * Implement dup() and dup2(). They are needed for Debian's implementation
of dd which otherwise causes the regression tests to fail.
2008-04-26 12:24:57 +00:00
Sam Hocevar
9389fc2518 * Slightly updated the build system. 2008-04-26 11:30:45 +00:00
Sam Hocevar
db40102a66 * Set minimal fuzzing ratio to 0.000000001% (less than one bit changed on
a whole DVD).
2008-04-12 07:44:34 +00:00
Sam Hocevar
81d43c778d * Implement %g in the debug() format string. Incomplete but useful. 2008-04-09 09:49:16 +00:00
Sam Hocevar
17b551bb2e * Link libzzuf with winsock because of our use of htons. 2007-11-03 00:22:58 +00:00
Sam Hocevar
e4491da6cf * Do not fuzz non-IP network protocols. They’re too painful to fine-tune. 2007-11-03 00:08:43 +00:00
Sam Hocevar
801feb2296 * Merged the bind() and connect() diversions using macros. They were almost
identical.
  * Check the addrlen value to avoid crashing with weird protocols.
2007-11-02 23:34:22 +00:00
Sam Hocevar
92fbf5821f * Divert connect() so that -p/--ports now works with outbound connections. 2007-11-02 23:23:25 +00:00
Sam Hocevar
a13b641301 * Fix a bug in the -p handling that made it opt-out instead of opt-in.
* Don’t bother using AF_UNIX, it doesn’t have ports.
2007-11-02 23:01:09 +00:00
Sam Hocevar
01e8f8ce00 * Network destination port choosing with -p/--ports.
* Renamed -p/--pick into -l/--list to avoid conflicts.
2007-11-02 22:45:54 +00:00
Sam Hocevar
59056cd9b4 * Support %d, %ld and %lld in addition to %i etc. in debug(). 2007-11-02 21:40:38 +00:00
Sam Hocevar
c61d2f6b27 * Log and divert bind() calls. 2007-11-02 21:32:18 +00:00
Sam Hocevar
e81b1c5af3 * -M is megabytes, not bytes. Fixed --help output. 2007-07-10 15:31:40 +00:00
Sam Hocevar
43db17d207 * Implemented -T / --max-cpu for max CPU time limits. 2007-07-10 15:23:18 +00:00