Changeset 1709


Ignore:
Timestamp:
Jan 25, 2007, 2:28:40 PM (16 years ago)
Author:
Sam Hocevar
Message:
Location:
zzuf/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/ChangeLog

    r1674 r1709  
     1------------------------------------------------------------------------
     2r243 | sam | 2007-01-25 13:15:47 +0100 (Thu, 25 Jan 2007) | 2 lines
     3Changed paths:
     4   M /trunk/doc/zzuf.1
     5
     6  * Added a networking example using socat.
     7
     8------------------------------------------------------------------------
     9r242 | sam | 2007-01-25 12:59:33 +0100 (Thu, 25 Jan 2007) | 2 lines
     10Changed paths:
     11   M /trunk/src/opts.h
     12   M /trunk/src/zzuf.c
     13
     14  * Oops, fix in-tree preloading!
     15
     16------------------------------------------------------------------------
     17r241 | sam | 2007-01-25 12:47:44 +0100 (Thu, 25 Jan 2007) | 2 lines
     18Changed paths:
     19   M /trunk/src/zzuf.c
     20
     21  * Put opts->bytes handling in the right place.
     22
     23------------------------------------------------------------------------
     24r240 | sam | 2007-01-25 12:40:27 +0100 (Thu, 25 Jan 2007) | 2 lines
     25Changed paths:
     26   M /trunk/doc/zzuf.1
     27   M /trunk/src/fuzz.c
     28   M /trunk/src/fuzz.h
     29   M /trunk/src/libzzuf.c
     30   M /trunk/src/opts.c
     31   M /trunk/src/opts.h
     32   M /trunk/src/zzuf.c
     33
     34  * Implemented -b/--bytes to restrict fuzzing to specific offsets.
     35
     36------------------------------------------------------------------------
     37r239 | sam | 2007-01-25 03:16:00 +0100 (Thu, 25 Jan 2007) | 2 lines
     38Changed paths:
     39   M /trunk/src/zzuf.c
     40
     41  * Fixed ifdef typo.
     42
     43------------------------------------------------------------------------
     44r238 | sam | 2007-01-25 02:10:10 +0100 (Thu, 25 Jan 2007) | 2 lines
     45Changed paths:
     46   M /trunk/TODO
     47
     48  * Updated TODO list.
     49
     50------------------------------------------------------------------------
     51r237 | sam | 2007-01-24 16:06:17 +0100 (Wed, 24 Jan 2007) | 2 lines
     52Changed paths:
     53   M /trunk/build-win32
     54   M /trunk/configure.ac
     55   M /trunk/src/Makefile.am
     56   M /trunk/src/opts.h
     57   M /trunk/src/timer.c
     58   M /trunk/src/zzuf.c
     59
     60  * Added DLL injection to the Win32 port attempt.
     61
     62------------------------------------------------------------------------
     63r236 | sam | 2007-01-23 16:38:18 +0100 (Tue, 23 Jan 2007) | 2 lines
     64Changed paths:
     65   A /trunk/build-win32
     66   M /trunk/configure.ac
     67   M /trunk/src/Makefile.am
     68   M /trunk/src/lib-load.h
     69   M /trunk/src/libzzuf.c
     70   M /trunk/src/libzzuf.h
     71   A /trunk/src/sys.c
     72   A /trunk/src/sys.h
     73   M /trunk/src/zzuf.c
     74
     75  * Added DLL initialisation code for Win32.
     76
     77------------------------------------------------------------------------
     78r235 | sam | 2007-01-23 13:16:50 +0100 (Tue, 23 Jan 2007) | 2 lines
     79Changed paths:
     80   M /trunk/src/fd.c
     81
     82  * Fix minor memory leak.
     83
     84------------------------------------------------------------------------
     85r234 | sam | 2007-01-23 09:45:47 +0100 (Tue, 23 Jan 2007) | 3 lines
     86Changed paths:
     87   M /trunk/src/lib-fd.c
     88   M /trunk/src/lib-load.h
     89   M /trunk/src/lib-mem.c
     90   M /trunk/src/lib-signal.c
     91   M /trunk/src/lib-stream.c
     92   M /trunk/src/zzuf.c
     93
     94  * Put either ORIG() or NEW(() around functions, because the naming scheme is
     95    likely to change for the Win32 port.
     96
     97------------------------------------------------------------------------
     98r233 | sam | 2007-01-18 22:04:34 +0100 (Thu, 18 Jan 2007) | 2 lines
     99Changed paths:
     100   M /trunk/doc/zzuf.1
     101   M /trunk/src/zzuf.c
     102
     103  * Minor documentation updates.
     104
     105------------------------------------------------------------------------
     106r232 | sam | 2007-01-18 19:45:58 +0100 (Thu, 18 Jan 2007) | 2 lines
     107Changed paths:
     108   M /trunk/src/fd.c
     109   M /trunk/src/lib-stream.c
     110
     111  * Minor improvement in the locking mechanism.
     112
     113------------------------------------------------------------------------
     114r231 | sam | 2007-01-18 13:32:31 +0100 (Thu, 18 Jan 2007) | 2 lines
     115Changed paths:
     116   M /trunk/configure.ac
     117   M /trunk/src/lib-fd.c
     118
     119  * Check recv() return type: int on Linux, ssize_t on OS X.
     120
     121------------------------------------------------------------------------
     122r230 | sam | 2007-01-18 01:21:07 +0100 (Thu, 18 Jan 2007) | 3 lines
     123Changed paths:
     124   M /trunk/configure.ac
     125   M /trunk/src/fd.c
     126   M /trunk/src/lib-fd.c
     127   M /trunk/src/lib-load.h
     128   M /trunk/src/lib-mem.c
     129   M /trunk/src/lib-signal.c
     130   M /trunk/src/lib-stream.c
     131   M /trunk/src/libzzuf.c
     132   M /trunk/src/zzuf.c
     133
     134  * Added enough autoconf checks and #ifdefs so that libzzuf builds on Win32.
     135    zzuf itself doesn't build yet, though.
     136
     137------------------------------------------------------------------------
     138r229 | sam | 2007-01-17 22:52:44 +0100 (Wed, 17 Jan 2007) | 3 lines
     139Changed paths:
     140   M /trunk/src/fd.c
     141   M /trunk/src/fd.h
     142   M /trunk/src/lib-fd.c
     143   M /trunk/src/lib-mem.c
     144   M /trunk/src/lib-stream.c
     145   M /trunk/src/libzzuf.c
     146
     147  * Replaced _zz_disabled with a less stinky API. Still not thread safe, does
     148    not recover very well from errors, but why care?
     149
     150------------------------------------------------------------------------
     151r228 | sam | 2007-01-17 22:12:27 +0100 (Wed, 17 Jan 2007) | 3 lines
     152Changed paths:
     153   M /trunk/doc/zzuf.1
     154   M /trunk/src/fuzz.c
     155   M /trunk/src/fuzz.h
     156   M /trunk/src/lib-fd.c
     157
     158  * Added aio_read() and aio_return(). They don’t work well yet, I’ll need
     159    to fix the _zz_disabled mess first.
     160
     161------------------------------------------------------------------------
     162r227 | sam | 2007-01-17 20:48:23 +0100 (Wed, 17 Jan 2007) | 2 lines
     163Changed paths:
     164   M /trunk/src/Makefile.am
     165   A /trunk/src/opts.c
     166   A /trunk/src/opts.h
     167   M /trunk/src/zzuf.c
     168
     169  * Reorganised code, got rid of global variables.
     170
     171------------------------------------------------------------------------
     172r226 | sam | 2007-01-17 18:14:22 +0100 (Wed, 17 Jan 2007) | 3 lines
     173Changed paths:
     174   M /trunk/AUTHORS
     175   M /trunk/doc/zzuf.1
     176   M /trunk/src/lib-fd.c
     177
     178  * recvmsg() support by Rémi Denis-Courmont.
     179  * Minor code reorganisation.
     180
     181------------------------------------------------------------------------
     182r225 | sam | 2007-01-17 17:32:45 +0100 (Wed, 17 Jan 2007) | 3 lines
     183Changed paths:
     184   M /trunk/src/lib-fd.c
     185
     186  * Improved recvfrom() debug information.
     187  * Implemented recv().
     188
     189------------------------------------------------------------------------
     190r224 | sam | 2007-01-17 17:26:40 +0100 (Wed, 17 Jan 2007) | 2 lines
     191Changed paths:
     192   M /trunk/src/debug.c
     193
     194  * Add %x to the format string parameters supported by debug().
     195
     196------------------------------------------------------------------------
     197r223 | sam | 2007-01-17 16:31:40 +0100 (Wed, 17 Jan 2007) | 2 lines
     198Changed paths:
     199   M /trunk/src/debug.c
     200   M /trunk/src/lib-stream.c
     201
     202  * Improved %c usage in our custom fprintf() implementation.
     203
     204------------------------------------------------------------------------
     205r222 | sam | 2007-01-17 16:21:09 +0100 (Wed, 17 Jan 2007) | 2 lines
     206Changed paths:
     207   M /trunk/src/lib-fd.c
     208   M /trunk/src/lib-load.h
     209   M /trunk/src/lib-mem.c
     210   M /trunk/src/lib-signal.c
     211   M /trunk/src/lib-stream.c
     212
     213  * Use __func__ wherever possible.
     214
     215------------------------------------------------------------------------
     216r221 | sam | 2007-01-17 16:07:35 +0100 (Wed, 17 Jan 2007) | 2 lines
     217Changed paths:
     218   M /trunk/AUTHORS
     219   M /trunk/doc/zzuf.1
     220   M /trunk/src/lib-fd.c
     221
     222  * recvfrom() support from Dominik Kuhlen.
     223
     224------------------------------------------------------------------------
     225r220 | sam | 2007-01-17 16:02:05 +0100 (Wed, 17 Jan 2007) | 2 lines
     226Changed paths:
     227   M /trunk/src/debug.c
     228
     229  * Print "NULL" instead of "(nil)" when printing null pointers.
     230
     231------------------------------------------------------------------------
     232r219 | sam | 2007-01-17 15:35:12 +0100 (Wed, 17 Jan 2007) | 2 lines
     233Changed paths:
     234   M /trunk/src/fd.c
     235   M /trunk/test/testsuite.sh
     236
     237  * Allow -r 0.0 again. Fixed the testsuite accordingly.
     238
     239------------------------------------------------------------------------
     240r218 | sam | 2007-01-17 14:46:38 +0100 (Wed, 17 Jan 2007) | 2 lines
     241Changed paths:
     242   M /trunk/src/Makefile.am
     243   A /trunk/src/lib-fd.c (from /trunk/src/load-fd.c:214)
     244   A /trunk/src/lib-load.h (from /trunk/src/load.h:214)
     245   A /trunk/src/lib-mem.c (from /trunk/src/load-mem.c:214)
     246   A /trunk/src/lib-signal.c (from /trunk/src/load-signal.c:214)
     247   A /trunk/src/lib-stream.c (from /trunk/src/load-stream.c:214)
     248   D /trunk/src/load-fd.c
     249   D /trunk/src/load-mem.c
     250   D /trunk/src/load-signal.c
     251   D /trunk/src/load-stream.c
     252   D /trunk/src/load.h
     253
     254  * Moved files around.
     255
     256------------------------------------------------------------------------
     257r217 | sam | 2007-01-17 14:42:18 +0100 (Wed, 17 Jan 2007) | 2 lines
     258Changed paths:
     259   M /trunk/doc/zzuf.1
     260
     261  * Suggest jot instead of seq in the examples.
     262
     263------------------------------------------------------------------------
     264r216 | sam | 2007-01-17 08:22:10 +0100 (Wed, 17 Jan 2007) | 2 lines
     265Changed paths:
     266   M /trunk/src/zzuf.c
     267
     268  * Fix a longopt parsing crash, thanks to Matti Hämäläinen.
     269
     270------------------------------------------------------------------------
     271r215 | sam | 2007-01-17 08:21:40 +0100 (Wed, 17 Jan 2007) | 2 lines
     272Changed paths:
     273   M /trunk/doc/zzuf.1
     274   M /trunk/src/zzuf.c
     275
     276  * Fix testsuite by printing MD5 hashes to stdout.
     277
     278------------------------------------------------------------------------
     279r214 | sam | 2007-01-16 15:36:33 +0100 (Tue, 16 Jan 2007) | 3 lines
     280Changed paths:
     281   M /trunk/src/libzzuf.c
     282   M /trunk/src/load-fd.c
     283   M /trunk/src/load-mem.c
     284   M /trunk/src/load-signal.c
     285   M /trunk/src/load-stream.c
     286   M /trunk/src/load.h
     287
     288  * Got rid of the *_load() functions. Now each diverted function is supposed
     289    to check that the *_orig() functions it calls are properly loaded.
     290
     291------------------------------------------------------------------------
     292r213 | sam | 2007-01-16 15:21:28 +0100 (Tue, 16 Jan 2007) | 2 lines
     293Changed paths:
     294   M /trunk/AUTHORS
     295   M /trunk/doc/zzuf.1
     296   M /trunk/src/load-fd.c
     297
     298  * pread() implementation, thanks to Clément Stenac.
     299
     300------------------------------------------------------------------------
     301r212 | sam | 2007-01-16 15:06:57 +0100 (Tue, 16 Jan 2007) | 2 lines
     302Changed paths:
     303   M /trunk/src/load-fd.c
     304
     305  * Don't do the offset sanity check on non-seekable devices.
     306
     307------------------------------------------------------------------------
     308r211 | sam | 2007-01-16 14:54:34 +0100 (Tue, 16 Jan 2007) | 2 lines
     309Changed paths:
     310   M /trunk/AUTHORS
     311   M /trunk/doc/zzuf.1
     312   M /trunk/src/load-fd.c
     313
     314  * readv() implementation, thanks to Rémi Denis-Courmont.
     315
     316------------------------------------------------------------------------
     317r210 | sam | 2007-01-15 14:28:19 +0100 (Mon, 15 Jan 2007) | 3 lines
     318Changed paths:
     319   M /trunk/doc/zzuf.1
     320
     321  * Use seq instead of awk in the example, to make shorter code. I know it
     322    won't work on BSD systems, but should I care?
     323
     324------------------------------------------------------------------------
     325r209 | sam | 2007-01-15 00:56:39 +0100 (Mon, 15 Jan 2007) | 3 lines
     326Changed paths:
     327   M /trunk/ChangeLog
     328   M /trunk/NEWS
     329   M /trunk/TODO
     330   M /trunk/configure.ac
     331
     332  * Version 0.5.
     333  * Updated NEWS and ChangeLog.
     334
    1335------------------------------------------------------------------------
    2336r208 | sam | 2007-01-15 00:42:34 +0100 (Mon, 15 Jan 2007) | 2 lines
  • zzuf/trunk/NEWS

    r1674 r1709  
    11$Id$
     2
     3Changes from 0.5 to 0.6
     4
     5 * allow to fuzz only parts of the input
     6 * support for readv(), pread(), recv(), recvfrom(), recvmsg()
     7 * support for asynchronous IO
     8 * minor fixes for crashes and memory leaks
    29
    310Changes from 0.4 to 0.5
  • zzuf/trunk/configure.ac

    r1702 r1709  
    11# $Id: configure.ac 98 2006-09-22 16:27:37Z sam $
    22
    3 AC_INIT(zzuf, 0.5)
     3AC_INIT(zzuf, 0.6)
    44
    55AC_PREREQ(2.50)
     
    88AC_CANONICAL_SYSTEM
    99
    10 AM_INIT_AUTOMAKE(zzuf, 0.5)
     10AM_INIT_AUTOMAKE(zzuf, 0.6)
    1111AM_CONFIG_HEADER(config.h)
    1212
  • zzuf/trunk/src/zzuf.c

    r1707 r1709  
    8383static void *get_entry(char const *);
    8484#endif
     85static void finfo(FILE *, struct opts *);
    8586#if defined HAVE_REGEX_H
    8687static char *merge_regex(char *, char *);
     
    425426    {
    426427        _zz_md5_fini(md5sum, ctx);
    427         fprintf(stdout, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x"
    428                 "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n",
    429                 opts->seed, opts->minratio, md5sum[0], md5sum[1], md5sum[2],
    430                 md5sum[3], md5sum[4], md5sum[5], md5sum[6], md5sum[7],
    431                 md5sum[8], md5sum[9], md5sum[10], md5sum[11], md5sum[12],
    432                 md5sum[13], md5sum[14], md5sum[15]);
     428        finfo(stdout, opts);
     429        fprintf(stdout, "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x"
     430                "%.02x%.02x%.02x%.02x%.02x%.02x\n", md5sum[0], md5sum[1],
     431                md5sum[2], md5sum[3], md5sum[4], md5sum[5], md5sum[6],
     432                md5sum[7], md5sum[8], md5sum[9], md5sum[10], md5sum[11],
     433                md5sum[12], md5sum[13], md5sum[14], md5sum[15]);
    433434        fflush(stdout);
    434435    }
     
    436437    _zz_unregister(0);
    437438    _zz_fd_fini();
     439}
     440
     441static void finfo(FILE *fp, struct opts *opts)
     442{
     443    if(opts->minratio == opts->maxratio)
     444        fprintf(fp, "zzuf[s=%i,r=%g]: ", opts->seed, opts->minratio);
     445    else
     446        fprintf(fp, "zzuf[s=%i,r=%g:%g]: ", opts->seed,
     447                opts->minratio, opts->maxratio);
    438448}
    439449
     
    602612
    603613    if(opts->verbose)
    604         fprintf(stderr, "zzuf[s=%i,r=%g]: launched %s\n",
    605                 opts->child[i].seed, opts->child[i].ratio,
    606                 opts->newargv[0]);
     614    {
     615        finfo(stderr, opts);
     616        fprintf(stderr, "launched %s\n", opts->newargv[0]);
     617    }
    607618
    608619    opts->lastlaunch = now;
     
    629640        {
    630641            if(opts->verbose)
    631                 fprintf(stderr, "zzuf[s=%i,r=%g]: "
    632                         "data output exceeded, sending SIGTERM\n",
    633                         opts->child[i].seed, opts->child[i].ratio);
     642            {
     643                finfo(stderr, opts);
     644                fprintf(stderr, "data output exceeded, sending SIGTERM\n");
     645            }
    634646            kill(opts->child[i].pid, SIGTERM);
    635647            opts->child[i].date = now;
     
    642654        {
    643655            if(opts->verbose)
    644                 fprintf(stderr, "zzuf[s=%i,r=%g]: "
    645                         "running time exceeded, sending SIGTERM\n",
    646                         opts->child[i].seed, opts->child[i].ratio);
     656            {
     657                finfo(stderr, opts);
     658                fprintf(stderr, "running time exceeded, sending SIGTERM\n");
     659            }
    647660            kill(opts->child[i].pid, SIGTERM);
    648661            opts->child[i].date = now;
     
    658671        {
    659672            if(opts->verbose)
    660                 fprintf(stderr, "zzuf[s=%i,r=%g]: "
    661                         "not responding, sending SIGKILL\n",
    662                         opts->child[i].seed, opts->child[i].ratio);
     673            {
     674                finfo(stderr, opts);
     675                fprintf(stderr, "not responding, sending SIGKILL\n");
     676            }
    663677            kill(opts->child[i].pid, SIGKILL);
    664678            opts->child[i].status = STATUS_SIGKILL;
     
    688702        if(opts->checkexit && WIFEXITED(status) && WEXITSTATUS(status))
    689703        {
    690             fprintf(stderr, "zzuf[s=%i,r=%g]: exit %i\n",
    691                     opts->child[i].seed, opts->child[i].ratio,
    692                     WEXITSTATUS(status));
     704            finfo(stderr, opts);
     705            fprintf(stderr, "exit %i\n", WEXITSTATUS(status));
    693706            opts->crashes++;
    694707        }
     
    697710                       && opts->child[i].status == STATUS_SIGTERM))
    698711        {
    699             fprintf(stderr, "zzuf[s=%i,r=%g]: signal %i%s%s\n",
    700                     opts->child[i].seed, opts->child[i].ratio,
     712            finfo(stderr, opts);
     713            fprintf(stderr, "signal %i%s%s\n",
    701714                    WTERMSIG(status), sig2str(WTERMSIG(status)),
    702715                      (WTERMSIG(status) == SIGKILL && opts->maxmem >= 0) ?
     
    713726        {
    714727            _zz_md5_fini(md5sum, opts->child[i].ctx);
    715             fprintf(stdout, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x%.02x"
    716                     "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n",
    717                     opts->child[i].seed, opts->child[i].ratio,
    718                     md5sum[0], md5sum[1], md5sum[2], md5sum[3], md5sum[4],
    719                     md5sum[5], md5sum[6], md5sum[7], md5sum[8], md5sum[9],
    720                     md5sum[10], md5sum[11], md5sum[12], md5sum[13],
    721                     md5sum[14], md5sum[15]);
     728            finfo(stdout, opts);
     729            fprintf(stdout, "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x"
     730                    "%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n", md5sum[0],
     731                    md5sum[1], md5sum[2], md5sum[3], md5sum[4], md5sum[5],
     732                    md5sum[6], md5sum[7], md5sum[8], md5sum[9], md5sum[10],
     733                    md5sum[11], md5sum[12], md5sum[13], md5sum[14], md5sum[15]);
    722734            fflush(stdout);
    723735        }
Note: See TracChangeset for help on using the changeset viewer.