[In the words of the author: vmsmunch.c - fix problem with buffer overflow in IO$_ACCESS call which resulted in a channel leak. -kingdon] Date: Mon, 03 May 1999 13:45:52 -0400 From: "Colin R. Blake" Organization: OpenVMS To: bug-cvs@gnu.org Subject: [Fwd: diff -u output for vmsmunch.c] --- vmsmunch.c;-0 Wed Feb 28 08:49:28 1996 +++ vmsmunch.c.0 Mon May 3 10:26:30 1999 @@ -15,6 +15,12 @@ by UnZip (and Zip, possibly), not least among them the utime() function. Read on for details... + 03-May-1999 Colin Blake (colin@theblakes.com) + Remove ASCDATES from the IO$_ACCESS call (its never + used anyway). The size of the supplied buffer is + incorrect (should be 35) and the resulting corruption + causes a channel leak. + 18-JUL-1994 Hunter Goatley Fixed IO$_ACCESS call. @@ -113,7 +119,6 @@ char *filename, *ptr; int action; { - /* original file.c variables */ static struct FAB Fab; @@ -150,7 +155,9 @@ {ATR$S_REVDATE,ATR$C_REVDATE,&Rdate[0]}, /* Revision date */ {ATR$S_EXPDATE,ATR$C_EXPDATE,&Edate[0]}, /* Expiration date */ {ATR$S_BAKDATE,ATR$C_BAKDATE,&Bdate[0]}, /* Backup date */ +#if 0 /* 03-May-1999 */ {ATR$S_ASCDATES,ATR$C_ASCDATES,&revisions}, /* number of revisions */ +#endif {ATR$S_FPRO,ATR$C_FPRO,&prot}, /* file protection */ {ATR$S_UIC,ATR$C_UIC,&uic}, /* file owner */ {ATR$S_JOURNAL,ATR$C_JOURNAL,&jnl}, /* journal flags */