[Multisuck-cvs] multisuck filter.c,1.4,1.5
Status: Beta
Brought to you by:
conrads
|
From: <co...@us...> - 2002-11-21 06:59:49
|
Update of /cvsroot/multisuck/multisuck
In directory sc8-pr-cvs1:/tmp/cvs-serv3556
Modified Files:
filter.c
Log Message:
Bug fix to prevent buffer overflow in bad_xref().
Index: filter.c
===================================================================
RCS file: /cvsroot/multisuck/multisuck/filter.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** filter.c 9 Jun 2002 17:59:23 -0000 1.4
--- filter.c 21 Nov 2002 06:59:46 -0000 1.5
***************
*** 295,299 ****
{
/* disregard the : and number */
! while (*ptr != ':')
xrefs[i][j++] = *ptr++;
xrefs[i][j] = '\0';
--- 295,299 ----
{
/* disregard the : and number */
! while ((*ptr != ':') && (*ptr != '\0'))
xrefs[i][j++] = *ptr++;
xrefs[i][j] = '\0';
|