[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22270 - gnunet/src/regex
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22270 - gnunet/src/regex |
Date: |
Mon, 25 Jun 2012 13:18:14 +0200 |
Author: grothoff
Date: 2012-06-25 13:18:14 +0200 (Mon, 25 Jun 2012)
New Revision: 22270
Modified:
gnunet/src/regex/regex.c
Log:
-boundscheck
Modified: gnunet/src/regex/regex.c
===================================================================
--- gnunet/src/regex/regex.c 2012-06-25 11:15:41 UTC (rev 22269)
+++ gnunet/src/regex/regex.c 2012-06-25 11:18:14 UTC (rev 22270)
@@ -931,7 +931,7 @@
static int
strkcmp (const char *str1, const char *str2, size_t k)
{
- if (NULL == str1 || NULL == str2)
+ if ( (NULL == str1) || (NULL == str2) || (strlen(str1) < k) )
return -1;
return strcmp (&str1[k], str2);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22270 - gnunet/src/regex,
gnunet <=