Commit Graph

  • d359cec8be * lib-stream.c: only use the __srefill trick on OS X. HP-UX is too different. Sam Hocevar 2008-07-18 09:28:18 +00:00
  • 5feec8da6a * lib-mem.c: fix FreeBSD 7.0 build by including <sys/cdefs.h> earlier on. Sam Hocevar 2008-07-18 09:28:14 +00:00
  • 8bbe4b289d * Make the RNG test shorter... it should not vary across platforms anyway. Sam Hocevar 2008-07-18 09:28:10 +00:00
  • 9810cc153f * Add slightly more complex modes to zzcat. Sam Hocevar 2008-07-18 09:28:06 +00:00
  • d45a5121ef * Better check for the __func__ keyword that does not rely on assumptions about the compiler version. Sam Hocevar 2008-07-18 09:28:02 +00:00
  • 7dfb40b935 * Add simpler modes to zzcat to better analyse what's going on. Sam Hocevar 2008-07-18 09:27:56 +00:00
  • 0a902ca687 * bug-memory.c: fix the SIGSEGV unit test. Sam Hocevar 2008-07-16 23:24:06 +00:00
  • 80d9efbd29 * Support fsetpos64 on Linux. Sam Hocevar 2008-07-16 23:17:12 +00:00
  • 3c423c91de * zzcat.c: partial fread() reads are undefined; avoid them in zzcat. Sam Hocevar 2008-07-16 23:17:07 +00:00
  • 7b03486164 * lib-mem.c: add pre-include macro to get getc_unlocked() on OpenSolaris. Sam Hocevar 2008-07-16 21:54:35 +00:00
  • 088d6f66e8 * lib-mem.c: add pre-include macros to get mmap and valloc on OpenSolaris. Sam Hocevar 2008-07-16 21:45:44 +00:00
  • c11d1067a2 * zzuf.c: rename sig2str to sig2name; the former is a Solaris libc symbol. Sam Hocevar 2008-07-16 21:45:40 +00:00
  • 6c23cd7e29 * Another fucked commit... synchronise config.h and lib-stream.c. Sam Hocevar 2008-07-16 21:41:27 +00:00
  • f9f17a64a3 * lib-stream.c: try to make the __filbuf() implementation portable across HP-UX and OpenSolaris. Sam Hocevar 2008-07-16 21:37:12 +00:00
  • 36726dcced * Implement freopen64, fsetpos64 and fseeko64 for OpenSolaris. Sam Hocevar 2008-07-16 21:24:09 +00:00
  • 66717397fa * check-utils: use tail -n X or tail -X depending on the platform. Sam Hocevar 2008-07-16 21:03:37 +00:00
  • 22cd9da8fe * bootstrap: update bootstrapping script for OpenSolaris compatibility. * check-utils: do not use grep -q, OpenSolaris doesn't know about it. Sam Hocevar 2008-07-16 20:53:14 +00:00
  • 48e7b55dfe * Oops, forgot to check in check-md5. Sam Hocevar 2008-07-16 20:36:58 +00:00
  • 4a1b32c6fd * Add a unit test for MD5 hashes. Sam Hocevar 2008-07-16 20:36:14 +00:00
  • 63b3a8e8a0 * Add a bunch of unit tests to check for zzuf basic capabilities: SIGSEGV and SIGFPE detection, memory exhaustion detection. Sam Hocevar 2008-07-16 17:23:37 +00:00
  • bd586d1a93 * mygetopt.c: fix a parsing issue with short options. Sam Hocevar 2008-07-16 17:23:33 +00:00
  • 4cda0e67f5 * Fix a few HP-UX warnings caused by missing headers. Sam Hocevar 2008-07-16 17:23:29 +00:00
  • b4541f895b * Split the test suite into the RNG test and the Unix utils test. Sam Hocevar 2008-07-16 17:23:24 +00:00
  • 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. Sam Hocevar 2008-07-16 09:52:08 +00:00
  • 3c6188a48b * Implement __srefill() for full HP-UX support on parisc-gcc. Sam Hocevar 2008-07-16 09:52:02 +00:00
  • d5734170b3 * zzcat.c: compilation fix for missing headers. Sam Hocevar 2008-07-16 09:51:58 +00:00
  • 612d830111 * testsuite.h: do not test for grep -a if the option is unknown. Sam Hocevar 2008-07-16 09:51:53 +00:00
  • 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. Sam Hocevar 2008-07-15 21:34:14 +00:00
  • 08d6923f3a * testsuite.sh: use printf instead of echo -n for better portability. Sam Hocevar 2008-07-15 20:16:15 +00:00
  • 8b1f5bba2c * Implement additional functions required on HP-UX: __fopen64, __fseeko64, __freopen64, __open64, __lseek64. Sam Hocevar 2008-07-15 20:16:11 +00:00
  • 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. Sam Hocevar 2008-07-15 20:16:06 +00:00
  • 88ddd7f4ac * configure.ac: do not use -fno-strength-reduce -fomit-frame-pointer, they're pretty useless for our project. Sam Hocevar 2008-07-15 20:16:02 +00:00
  • d79a717daa * zzuf.c: reformated the licensing information for zzuf -V. Sam Hocevar 2008-07-15 20:15:58 +00:00
  • 2064bc7fcf * lib-stream.c: remove an unused variable. Sam Hocevar 2008-07-15 20:15:53 +00:00
  • cacdf20050 * Fix a compilation issue on FreeBSD by defining _BSD_SOURCE and including <sys/cdefs.h>. Sam Hocevar 2008-07-15 20:15:47 +00:00
  • 1653045c19 * Fix the Win32 package build. No, it still doesn't work, it just builds. Sam Hocevar 2008-07-15 20:15:43 +00:00
  • 27983605ca * Set a default maximum memory usage value to avoid excessive swapping. Sam Hocevar 2008-07-15 20:15:35 +00:00
  • 4d91e25ff0 * Ideas for a zzufrc file. Sam Hocevar 2008-07-09 10:50:43 +00:00
  • 0da8b1c33a * Run the testsuite when "make check" is called. Sam Hocevar 2008-06-20 06:05:25 +00:00
  • 7711565c5d * Avoid a potential shared library attack by never looking for libzzuf in the current directory. Sam Hocevar 2008-06-20 06:05:13 +00:00
  • 23271396db * Version 0.12. * Updated NEWS and ChangeLog. Sam Hocevar 2008-06-13 09:31:21 +00:00
  • df05d7bd8a * Finished the libzzuf manual page. Sam Hocevar 2008-06-13 09:31:17 +00:00
  • 23ba2c6d16 * Fix a crash in the realloc() wrapper occurring when dlsym() or dlopen() call realloc() with a NULL pointer. Sam Hocevar 2008-06-10 16:21:22 +00:00
  • 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. Sam Hocevar 2008-06-10 16:21:17 +00:00
  • 18d87ea844 * Started writing a manual page for libzzuf. Sam Hocevar 2008-06-10 16:21:11 +00:00
  • ed7240392c * Change -M to mean mebibytes instead of megabytes, because I'm a fucking pedant. Sam Hocevar 2008-05-19 11:25:05 +00:00
  • 7acd670a08 * Change -F to -j, to mimic make. Sam Hocevar 2008-05-19 11:25:01 +00:00
  • 6dccd9a9e5 * Allow to omit the right-hand side of the seed range, for indefinite fuzzing attempts. Sam Hocevar 2008-05-19 11:24:56 +00:00
  • 768baba0bc * Clarify -C0 behaviour. Sam Hocevar 2008-05-19 11:24:51 +00:00
  • 9634d50cf7 * Add SIGPIPE to the list of crashing signals. Sam Hocevar 2008-05-19 11:24:46 +00:00
  • 1c69645f86 * Fix an invalid cast on the Alpha architecture caused by sockaddr_in* having larger alignment requirements than sockaddr*. Sam Hocevar 2008-05-19 11:24:41 +00:00
  • bc87eaa365 * Version 0.11. * Updated NEWS and ChangeLog. Sam Hocevar 2008-05-18 19:56:52 +00:00
  • b2b6b59b71 * Minor memory and speed optimisation. Sam Hocevar 2008-05-18 19:56:48 +00:00
  • dd53242b2c * Start working on the internal code documentation. Sam Hocevar 2008-05-18 18:13:45 +00:00
  • 500fcb0bf1 * Don't use `--' in the testsuite, it is no longer understood. Sam Hocevar 2008-05-18 12:38:37 +00:00
  • c45ecef2a9 * Implement getchar() and getchar_unlocked(). Sam Hocevar 2008-05-18 12:38:32 +00:00
  • 70b02f704c * Minor changes: add quotes between launched program name, update copyright. Sam Hocevar 2008-05-18 09:45:53 +00:00
  • c06d381315 * Make sure the fgets_unlocked() reimplementation uses fgetc_unlocked(), not fgetc(). Sam Hocevar 2008-05-18 09:45:48 +00:00
  • 03cf326236 * Implement fgets_unlocked() and fread_unlocked(). Sam Hocevar 2008-05-17 23:10:47 +00:00
  • 8e56c6de5a * Implement getc_unlocked() and fgetc_unlocked(). Sam Hocevar 2008-05-17 23:10:41 +00:00
  • 04b9c5f1f0 * Document the new command line parsing behaviour. Sam Hocevar 2008-05-17 13:40:45 +00:00
  • e08dda0acd * No longer require the "--" trick to separate zzuf's flags and the called program's. Sam Hocevar 2008-05-17 13:40:40 +00:00
  • 78166aa5b0 * Cosmetic: remove trailing spaces from the source code. Sam Hocevar 2008-05-16 22:01:18 +00:00
  • 383ed9cb09 * Add statistical analysis to the testsuite to check our random number generator. Sam Hocevar 2008-05-16 22:01:11 +00:00
  • cee4f2fc92 * Improve overall randomness. Now even close seeds have very different behaviours on which bits are flipped. Sam Hocevar 2008-05-16 22:01:07 +00:00
  • 60a67d3282 * Update TODO. Sam Hocevar 2008-05-16 22:01:03 +00:00
  • 8cfe60ca4c * Update copyright and homepage in the manual page. Sam Hocevar 2008-05-16 22:00:58 +00:00
  • 9788f1b62b * Implement dup() and dup2(). They are needed for Debian's implementation of dd which otherwise causes the regression tests to fail. Sam Hocevar 2008-04-26 12:24:57 +00:00
  • 9389fc2518 * Slightly updated the build system. Sam Hocevar 2008-04-26 11:30:45 +00:00
  • db40102a66 * Set minimal fuzzing ratio to 0.000000001% (less than one bit changed on a whole DVD). Sam Hocevar 2008-04-12 07:44:34 +00:00
  • 81d43c778d * Implement %g in the debug() format string. Incomplete but useful. Sam Hocevar 2008-04-09 09:49:16 +00:00
  • b86478a95e * Version 0.10. * Updated NEWS and ChangeLog. Sam Hocevar 2007-11-03 00:24:46 +00:00
  • 17b551bb2e * Link libzzuf with winsock because of our use of htons. Sam Hocevar 2007-11-03 00:22:58 +00:00
  • 8da50af0f9 * Documentation updates. Sam Hocevar 2007-11-03 00:14:40 +00:00
  • e4491da6cf * Do not fuzz non-IP network protocols. They’re too painful to fine-tune. Sam Hocevar 2007-11-03 00:08:43 +00:00
  • 801feb2296 * Merged the bind() and connect() diversions using macros. They were almost identical. * Check the addrlen value to avoid crashing with weird protocols. Sam Hocevar 2007-11-02 23:34:22 +00:00
  • 92fbf5821f * Divert connect() so that -p/--ports now works with outbound connections. Sam Hocevar 2007-11-02 23:23:25 +00:00
  • 82db9143ca * Look for connect(). Sam Hocevar 2007-11-02 23:22:11 +00:00
  • 9934d0c438 * Updated documentation. Sam Hocevar 2007-11-02 23:07:41 +00:00
  • 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. Sam Hocevar 2007-11-02 23:01:09 +00:00
  • 01e8f8ce00 * Network destination port choosing with -p/--ports. * Renamed -p/--pick into -l/--list to avoid conflicts. Sam Hocevar 2007-11-02 22:45:54 +00:00
  • b45efa5afa * Check for <netinet/in.h>, it’s needed for struct sockaddr_in. Sam Hocevar 2007-11-02 21:50:08 +00:00
  • 59056cd9b4 * Support %d, %ld and %lld in addition to %i etc. in debug(). Sam Hocevar 2007-11-02 21:40:38 +00:00
  • c61d2f6b27 * Log and divert bind() calls. Sam Hocevar 2007-11-02 21:32:18 +00:00
  • af990fc5ed * Check for bind in the configure step. Sam Hocevar 2007-11-02 21:16:57 +00:00
  • 35d39cab6f * Version 0.9. For real, this time. * Updated NEWS and ChangeLog. Sam Hocevar 2007-07-10 15:55:35 +00:00
  • 66674eab71 * Documented the new -T / --max-cpu flag. Sam Hocevar 2007-07-10 15:42:37 +00:00
  • e81b1c5af3 * -M is megabytes, not bytes. Fixed --help output. Sam Hocevar 2007-07-10 15:31:40 +00:00
  • 43db17d207 * Implemented -T / --max-cpu for max CPU time limits. Sam Hocevar 2007-07-10 15:23:18 +00:00
  • e724e5a53e * Rename -T to -t. -T will be the CPU time limit. Sam Hocevar 2007-07-10 14:30:13 +00:00
  • 98fad9dfdd * Rename ZZUF_RLIMIT_CONST into ZZUF_RLIMIT_MEM because we're going to have the _CPU one as well. Sam Hocevar 2007-07-10 14:26:08 +00:00
  • 7f272a9e6a * Correct thinko in manpage. Sam Hocevar 2007-07-10 09:01:12 +00:00
  • 4c64d4edf6 * Version 0.9. * Updated NEWS and ChangeLog. Sam Hocevar 2007-07-10 00:24:35 +00:00
  • 5faa15e62d * Do not clobber LD_PRELOAD, patch by Sami Liedes. Heavily rewritten. Sam Hocevar 2007-07-09 23:51:49 +00:00
  • cc7dc895b5 * Renamed ranges_static into static_ranges. Sam Hocevar 2007-07-06 20:47:51 +00:00
  • 583632ff09 * Documented -p/--pick in the man page. Sam Hocevar 2007-07-06 20:47:38 +00:00
  • 7ce5c0c5cd * Factored common range-parsing code. Sam Hocevar 2007-07-06 14:39:39 +00:00
  • 7693a37ae1 * Added -p flag to cherry pick file descriptors that get fuzzed. Sam Hocevar 2007-07-06 13:40:55 +00:00
  • 71c077ae58 * Allow to use debug() everywhere in the code; it'll just do nothing in zzuf itself, and will only output stuff in the library. Sam Hocevar 2007-07-06 13:34:38 +00:00
  • 9cc127dce5 * Add -DLIBZZUF to the libzzuf build. Sam Hocevar 2007-07-06 13:31:23 +00:00