[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.11.[2&9], server abort, "unable to parse"
From: |
Paul Edwards |
Subject: |
Re: 1.11.[2&9], server abort, "unable to parse" |
Date: |
Tue, 18 Nov 2003 08:36:28 GMT |
"Todd Denniston" <Todd.Denniston@ssa.crane.navy.mil> wrote in message
news:mailman.193.1069121322.399.bug-cvs@gnu.org...
> I got a core and backtrace from this one after it ran in ext mode.
> #0 0xef6a49d0 in strncmp () from /usr/lib/libc.so.1
> #1 0x466b8 in RCS_reparsercsfile (rdata=0xd9588, pfp=0x0, rcsbufp=0x0)
> at rcs.c:537
Try this to fix the above part (patch against 1.11.9):
Index: rcs.c
===================================================================
RCS file: /cvs/ccvs/src/rcs.c,v
retrieving revision 1.262.4.14
diff -c -r1.262.4.14 rcs.c
*** rcs.c 7 Oct 2003 18:23:01 -0000 1.262.4.14
--- rcs.c 18 Nov 2003 08:34:16 -0000
***************
*** 583,589 ****
/* Note that when comparing with RCSDATE, we are not massaging
VALUE from the string found in the RCS file. This is OK
since we know exactly what to expect. */
! if (*cp == '\0' && strncmp (RCSDATE, value, (sizeof RCSDATE) - 1) == 0)
break;
if (STREQ (key, RCSDESC))
--- 583,589 ----
/* Note that when comparing with RCSDATE, we are not massaging
VALUE from the string found in the RCS file. This is OK
since we know exactly what to expect. */
! if (*cp == '\0' && value != NULL strncmp (RCSDATE, value, (sizeof RCSDATE) -
1) == 0)
break;
if (STREQ (key, RCSDESC))