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.
Sam Hocevar
2007-01-03 22:51:36 +00:00
5d89130fb9* Do not fuzz anything if 0 bytes were read. * Added a debug message for fuzzing.
Sam Hocevar
2007-01-03 22:25:45 +00:00
ead4987c3b* Better debug messages in load-stream.c.
Sam Hocevar
2007-01-03 22:12:02 +00:00
6b072012f4* Implemented %c in our debug() printf implementation.
Sam Hocevar
2007-01-03 22:10:57 +00:00
de9a7ef44d* Use "strings </dev/urandom", not "strings /dev/urandom".
Sam Hocevar
2007-01-03 21:53:03 +00:00
a69b8cc7ed* Added a stupid PRNG to streamcat and fdcat. * Do not use sed in the testsuite, because of OS X.
Sam Hocevar
2007-01-03 21:51:11 +00:00
a786231fb2* No longer use the OS's PRNG, we use our own (based on a Dr Dobbs article from November 1985, page 91).
Sam Hocevar
2007-01-03 21:20:22 +00:00
abb31b42e9* Split some code into clean functions.
Sam Hocevar
2007-01-03 20:43:47 +00:00
77f97d7c4d* Make the testsuite reproductible.
Sam Hocevar
2007-01-03 17:58:11 +00:00
c8af1823d9* Now works on Darwin!
Sam Hocevar
2007-01-03 17:57:52 +00:00
3d186e036a* The whole crap now builds on OS X. Now if it only agreed to run, too...
Sam Hocevar
2007-01-03 09:09:41 +00:00
3bc1bfc4ab* Minor optimisations to the testsuite.
Sam Hocevar
2007-01-03 09:04:01 +00:00
a0f2a394a2* Oops, fixed the testsuite again.
Sam Hocevar
2007-01-03 01:28:02 +00:00
9fac4ada0f* Oops, fixed stdout writing.
Sam Hocevar
2007-01-02 18:26:56 +00:00
441deaa56d* Totally reworked webpage.
Sam Hocevar
2007-01-02 17:15:34 +00:00
58c9294fde* Output process status to stdout, not stderr.
Sam Hocevar
2007-01-02 14:51:55 +00:00
a9dd607eb3* Do not count debug bytes in the --max-bytes count.
Sam Hocevar
2007-01-02 13:26:32 +00:00
32e9e7c408* Fix typo in manpage.
Sam Hocevar
2007-01-02 10:45:19 +00:00
3e74a56190* Use a separate file descriptor for debugging messages, so that the -q flag does not remove debug messages. * Slightly improved fd handling code.
Sam Hocevar
2007-01-02 01:13:05 +00:00
d7fa36634e* Made the debug() function signal-safe by reimplementing the necessary subset of fprintf() we needed.
Sam Hocevar
2007-01-02 00:27:33 +00:00
03cdccdc80* Deprecate README tutorial. Everything’s in the manpage now.
Sam Hocevar
2007-01-01 21:55:48 +00:00
c8df6d0f5b* Implemented signal handling. * Updated documentation accordingly and improved a few parts.
Sam Hocevar
2007-01-01 21:35:54 +00:00
85f6af7cb2* Alphabetise flags in help output and manpage.
Sam Hocevar
2007-01-01 19:49:57 +00:00
f097220bbf* Update documentation.
Sam Hocevar
2007-01-01 19:14:55 +00:00
7352ec27d7* Switch to REG_EXTENDED. * Implement -c (--cmdline). * Updated documentation accordingly.
Sam Hocevar
2007-01-01 18:56:13 +00:00
4e6f94651f* Check regex syntax in zzuf. * Fix minor, harmful memory leaks.
Sam Hocevar
2006-12-29 18:13:42 +00:00
01f03abe90* Factored regex matching stuff.
Sam Hocevar
2006-12-29 17:49:11 +00:00
b8d4118de5* Added the -i flag (for stdin fuzzing).
Sam Hocevar
2006-12-29 17:22:11 +00:00
03abccd656* Change -i/-e to -I/-E.
Sam Hocevar
2006-12-29 16:46:06 +00:00
291a1ca6c1* Renamed functions here and there.
Sam Hocevar
2006-12-28 20:32:21 +00:00
53157d4fbb* Improved zfd_register() and zfd_* function performances. * Changed function names here and there.
Sam Hocevar
2006-12-28 20:22:32 +00:00
8911c02237* Fixed a partial read data loss bug in the fread implementation. * Cosmetic fixes.
Sam Hocevar
2006-12-28 17:48:05 +00:00
2bb49adf8a* Added cat reimplementations to the testsuite.
Sam Hocevar
2006-12-28 17:47:26 +00:00
d7d610c117* Shorten function names.
Sam Hocevar
2006-12-28 15:51:43 +00:00
5bb4e9c609* Hide struct zzuf behind public functions. No real abstraction yet.
Sam Hocevar
2006-12-28 15:48:10 +00:00
652c35e8d9* Add a changelog (from version 1.0).
Sam Hocevar
2006-12-28 15:44:28 +00:00
03a54c53d8* Do not put version information in the distributed .so.
Sam Hocevar
2006-12-28 15:44:13 +00:00
2fb9e2de46* Update documentation.
Sam Hocevar
2006-12-28 15:43:28 +00:00
b2a821aa4f* Oops, correctly install manpage.
Sam Hocevar
2006-12-23 19:12:52 +00:00
846ae23340* Typo in Makefile.am.
Sam Hocevar
2006-12-23 18:40:28 +00:00
f43871f59c* Prepare version 0.1.
Sam Hocevar
2006-12-23 18:37:52 +00:00
83a38e48ba* Sync’ed README and manpage.
Sam Hocevar
2006-12-22 23:40:03 +00:00
cd34753adc* Slightly updated documentation.
Sam Hocevar
2006-12-22 23:36:04 +00:00
1b5ba510be* Fix stdout/stderr copying. Don't use fprintf for something that can have null bytes (lol @ me).
Sam Hocevar
2006-12-22 17:01:16 +00:00
37cb8cd872* Fix a cleanup bug in the testsuite. * If any of the tests failed, do not erase the test files.
Sam Hocevar
2006-12-22 16:54:55 +00:00
0d941d02eb* Slightly modified --help message.
Sam Hocevar
2006-12-22 16:36:47 +00:00
c95059bb66* Wrote a manpage. Phew.
Sam Hocevar
2006-12-22 16:36:30 +00:00
728cfe90bf* Implement --max-bytes and --max-time.
Sam Hocevar
2006-12-22 15:06:21 +00:00
5cae3cb2c9* Implemented parallelisation. * Implemented “quiet” mode. * Handle stdin and stderr in their own pipes.
Sam Hocevar
2006-12-22 13:53:58 +00:00
3134245182* Don’t rely on libzzuf.h in debug.c, so that it can be used in zzuf, too.
Sam Hocevar
2006-12-22 13:18:13 +00:00
5d9b5366ee* Fork to launch the child and read its stdout/stderr.
Sam Hocevar
2006-12-21 19:56:22 +00:00
db77b126f9* Improved help.
Sam Hocevar
2006-12-18 13:23:56 +00:00
f3e7ed8f87* Improved TODO list.
Sam Hocevar
2006-12-18 12:58:47 +00:00
60a869d1a1* More testsuite improvements.
Sam Hocevar
2006-12-18 12:48:49 +00:00
76ceba9566* Better tests and error reporting in the testsuite.
Sam Hocevar
2006-12-18 11:07:42 +00:00
b7370e4aba* Huge performance improvement by caching the bit array. Yay.
Sam Hocevar
2006-12-17 23:58:23 +00:00
d81d47bbe0* Added getc(), fgetc(), fgets(), ungetc(), getline() and getdelim(). * sed now works properly.
Sam Hocevar
2006-12-17 22:14:13 +00:00
9e73ecf297* Better, more complete testsuite program.
Sam Hocevar
2006-12-17 22:12:11 +00:00
690f129147* Added a testsuite script.
Sam Hocevar
2006-12-17 17:33:02 +00:00
830ef2fa04* Split preload.c into load-fd.c and load-stream.c.
Sam Hocevar
2006-12-17 17:17:31 +00:00
3f4d199b1c* Update README file.
Sam Hocevar
2006-12-16 10:37:41 +00:00
6e8bde62df* Added AUTHORS file.
Sam Hocevar
2006-12-15 20:42:27 +00:00
1ea9c18ee5* More TODO.
Sam Hocevar
2006-12-15 18:49:33 +00:00
afaf2ccaf1* Rename zzuf_preload to zzuf_preload_libc. You never know.
Sam Hocevar
2006-12-15 18:48:24 +00:00
cd868abe94* Added a few examples to README.
Sam Hocevar
2006-12-15 17:48:17 +00:00
4c8da1b060* Fix ratio so that it talks about bits, not bytes.
Sam Hocevar
2006-12-15 17:47:59 +00:00
8c26a7f04c* Support --prefix (library location).
Sam Hocevar
2006-12-15 17:44:20 +00:00
6a4ef842b0* Rename percent to ratio.
Sam Hocevar
2006-12-15 16:10:56 +00:00
db7d70a853* Crap, percents could not go higer than 1.0.
Sam Hocevar
2006-12-15 15:07:38 +00:00
c73bf4e00f* Switch random back to 32 bits. It's enough (tm).
Sam Hocevar
2006-12-15 14:57:59 +00:00
f8fcc918b8* Really fix the inconsistency bug. Now dd bs=2048 count=1 gives the same result as dd bs=1 count=2048.
Sam Hocevar
2006-12-15 14:07:46 +00:00
22c8111a5a* Implemented lseek() and factored lseek64() code.
Sam Hocevar
2006-12-15 13:20:01 +00:00
a6acd05e17* Handle percent < 100.0/CHUNK_SIZE a bit better. * Fix a grave index bug in the fuzzer that made everything inconsistent.
Sam Hocevar
2006-12-15 13:12:44 +00:00
7695aaa56f* Add a printf attribute to the debug function to trap errors.
Sam Hocevar
2006-12-15 10:18:57 +00:00
93ef1731f4* Oops, fix a bug in the lseek64() diversion.
Sam Hocevar
2006-12-15 10:07:53 +00:00
4787861fc8* Divert close, fclose, lseek64.
Sam Hocevar
2006-12-15 10:06:30 +00:00
646b0951d8* Remove useless verbosity.
Sam Hocevar
2006-12-15 09:08:52 +00:00
22f39f41c1* Divert fseek().
Sam Hocevar
2006-12-15 09:03:48 +00:00
73b5ad747e* Better error reporting if command failed.
Sam Hocevar
2006-12-15 09:01:46 +00:00
6e2d2746f9* Add --debug. * --include and --exclude now work.
Sam Hocevar
2006-12-15 08:42:27 +00:00
af786f13d4* Add fallbacks to our functions in case other libraries call libc functions in their init constructor (eg. libproc).
Sam Hocevar
2006-12-15 08:14:38 +00:00
817f735d78* Added code for --include/--exclude. Does not work yet.
Sam Hocevar
2006-12-15 07:53:09 +00:00
1ebf62640b* Support fopen64().
Sam Hocevar
2006-12-15 00:43:39 +00:00
c77ff249ed* First somewhat working version.
Sam Hocevar
2006-12-15 00:26:01 +00:00
e09dc41893* Fix a bug and refactor some code.
Sam Hocevar
2006-12-14 16:11:14 +00:00
2cd4abfc4a* First try at libzzuf.
Sam Hocevar
2006-12-14 15:55:18 +00:00
83eb77baf8* Oops, typo.
Sam Hocevar
2006-12-14 14:25:10 +00:00
48650e6bbe* Easy POC code. We need some LD_PRELOAD shit instead.
Sam Hocevar
2006-12-14 14:23:07 +00:00
6021b30c33* Initial tree.
Sam Hocevar
2006-12-13 20:17:27 +00:00