Commit Graph

88 Commits

Author SHA1 Message Date
Sam Hocevar
f109b99b53 * Always define getc(), but undefine the getc macro beforehands just in case.
* Implemented _IO_getc().
2007-01-07 10:34:45 +00:00
Sam Hocevar
399f65d704 * Implemented fseeko(). 2007-01-07 09:34:42 +00:00
Sam Hocevar
f62025e392 * Fix a bug in the fgetln() implementation. The newline was not properly
accounted for in the returned length.
2007-01-06 22:17:09 +00:00
Sam Hocevar
f77a838606 * Cleaned up code. 2007-01-06 21:38:33 +00:00
Sam Hocevar
1f4b9cfa97 * Only link with -ldl when available.
* Removed PKG_* stuff from configure.ac.
  * Add more compilation warnings.
2007-01-06 21:37:42 +00:00
Sam Hocevar
e20a8f44bd * Fix for BSD machines: getc() may be defined as a macro. 2007-01-06 20:59:28 +00:00
Sam Hocevar
4f2b321dbf * Fixed implicit declaration. 2007-01-06 20:08:31 +00:00
Sam Hocevar
ee2a4cec8b * Implemented the mmap() family. 2007-01-06 20:01:25 +00:00
Sam Hocevar
5329e5a3ea * Implemented rewind(). 2007-01-06 20:01:15 +00:00
Sam Hocevar
2029e77e18 * Fix fread() issue with standard input reading. 2007-01-06 15:54:14 +00:00
Sam Hocevar
9a7c211b57 * Fix build with older versions of gcc. 2007-01-06 14:02:51 +00:00
Sam Hocevar
bf0f51a97f * Documentation tuning. 2007-01-06 10:51:44 +00:00
Sam Hocevar
3d20829220 * Version 0.2 is ready. 2007-01-06 00:40:51 +00:00
Sam Hocevar
85b6d87a3d * Cosmetic fixes. 2007-01-06 00:10:46 +00:00
Sam Hocevar
31993f9bc7 * Implemented --max-crashes.
* Renamed --forks to --max-forks.
  * Changed debug messages format.
2007-01-06 00:08:16 +00:00
Sam Hocevar
1322fd8cf0 * Oops, forgot to fix --help output. 2007-01-05 23:15:29 +00:00
Sam Hocevar
a7b655736a * Rename --fork to --max-forks. 2007-01-05 23:14:37 +00:00
Sam Hocevar
064232ecf8 * Fix an uncontrolled corruption bug in fgetln(). 2007-01-05 17:34:10 +00:00
Sam Hocevar
6917989fba * Fix fgetln(). The testsuite *almost* passes. 2007-01-05 16:03:04 +00:00
Sam Hocevar
2303ca5846 * Implemented BSD fgetln(). Untested yet. 2007-01-05 14:36:39 +00:00
Sam Hocevar
df7b1127df * Allow octal escape values for -P and -R.
* Updated manpage accordingly and added a few minor things in it.
2007-01-05 10:28:07 +00:00
Sam Hocevar
7557e335bd * Change -N to -n for --network. 2007-01-05 08:01:06 +00:00
Sam Hocevar
8d40570979 * Network support. 2007-01-05 07:52:30 +00:00
Sam Hocevar
86dfb1f5fd * Implemented -R / --refuse. 2007-01-04 08:59:05 +00:00
Sam Hocevar
ab9a1d771c * Implement -P / --protect. 2007-01-04 01:09:04 +00:00
Sam Hocevar
39a8524c0e * Added a _zz_disabled flag. This is needed on OS X where we protect the
fopen_orig() call because it will call our own diverted open() function
    and we don't want it to fiddle with our structures.
2007-01-03 22:51:36 +00:00
Sam Hocevar
5d89130fb9 * Do not fuzz anything if 0 bytes were read.
* Added a debug message for fuzzing.
2007-01-03 22:25:45 +00:00
Sam Hocevar
ead4987c3b * Better debug messages in load-stream.c. 2007-01-03 22:12:02 +00:00
Sam Hocevar
6b072012f4 * Implemented %c in our debug() printf implementation. 2007-01-03 22:10:57 +00:00
Sam Hocevar
a786231fb2 * No longer use the OS's PRNG, we use our own (based on a Dr Dobbs article
from November 1985, page 91).
2007-01-03 21:20:22 +00:00
Sam Hocevar
abb31b42e9 * Split some code into clean functions. 2007-01-03 20:43:47 +00:00
Sam Hocevar
c8af1823d9 * Now works on Darwin! 2007-01-03 17:57:52 +00:00
Sam Hocevar
3d186e036a * The whole crap now builds on OS X. Now if it only agreed to run, too... 2007-01-03 09:09:41 +00:00
Sam Hocevar
9fac4ada0f * Oops, fixed stdout writing. 2007-01-02 18:26:56 +00:00
Sam Hocevar
58c9294fde * Output process status to stdout, not stderr. 2007-01-02 14:51:55 +00:00
Sam Hocevar
a9dd607eb3 * Do not count debug bytes in the --max-bytes count. 2007-01-02 13:26:32 +00:00
Sam Hocevar
3e74a56190 * Use a separate file descriptor for debugging messages, so that the -q flag
does not remove debug messages.
  * Slightly improved fd handling code.
2007-01-02 01:13:05 +00:00
Sam Hocevar
d7fa36634e * Made the debug() function signal-safe by reimplementing the necessary
subset of fprintf() we needed.
2007-01-02 00:27:33 +00:00
Sam Hocevar
c8df6d0f5b * Implemented signal handling.
* Updated documentation accordingly and improved a few parts.
2007-01-01 21:35:54 +00:00
Sam Hocevar
85f6af7cb2 * Alphabetise flags in help output and manpage. 2007-01-01 19:49:57 +00:00
Sam Hocevar
7352ec27d7 * Switch to REG_EXTENDED.
* Implement -c (--cmdline).
  * Updated documentation accordingly.
2007-01-01 18:56:13 +00:00
Sam Hocevar
4e6f94651f * Check regex syntax in zzuf.
* Fix minor, harmful memory leaks.
2006-12-29 18:13:42 +00:00
Sam Hocevar
01f03abe90 * Factored regex matching stuff. 2006-12-29 17:49:11 +00:00
Sam Hocevar
b8d4118de5 * Added the -i flag (for stdin fuzzing). 2006-12-29 17:22:11 +00:00
Sam Hocevar
03abccd656 * Change -i/-e to -I/-E. 2006-12-29 16:46:06 +00:00
Sam Hocevar
291a1ca6c1 * Renamed functions here and there. 2006-12-28 20:32:21 +00:00
Sam Hocevar
53157d4fbb * Improved zfd_register() and zfd_* function performances.
* Changed function names here and there.
2006-12-28 20:22:32 +00:00
Sam Hocevar
8911c02237 * Fixed a partial read data loss bug in the fread implementation.
* Cosmetic fixes.
2006-12-28 17:48:05 +00:00
Sam Hocevar
d7d610c117 * Shorten function names. 2006-12-28 15:51:43 +00:00
Sam Hocevar
5bb4e9c609 * Hide struct zzuf behind public functions. No real abstraction yet. 2006-12-28 15:48:10 +00:00