[gnu.utils.bug] Bug in GNU tar 1.03: exclude operation

rang@cpsin3.cps.msu.edu (Anton Rang) (01/17/89)

System: Sun-3/280, SunOS 3.4.

The command line:

    gnutar -c -b 100 -v -f /tmp/rmt0 -z -l -V "cps45x: /usr 1-16-88" \
    -X /usr/users/staff/rang/stuff/00yy .

causes GNU tar to crash with the message "Couldn't re-allocate memory". 
I tracked it down to the routine add_exclude in tar.c, which calls
ck_realloc() on a null pointer.

+---------------------------+------------------------+----------------------+
| Anton Rang (grad student) | "UNIX: Just Say No!"   | "Do worry...be SAD!" |
| Michigan State University | rang@cpswh.cps.msu.edu |                      |
+---------------------------+------------------------+----------------------+