[Freeswitch-svn] [commit] r13339 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sip
FreeSWITCH SVN
mikej at freeswitch.org
Fri May 15 09:07:05 PDT 2009
Author: mikej
Date: Fri May 15 11:07:05 2009
New Revision: 13339
Log:
Wed May 13 11:09:06 CDT 2009 Pekka Pessi <first.last at nokia.com>
* sip_parser.c: fixed overrrun in sip_method_name()
Ignore-this: efe0fc0935451b1b0ee403befac5df40
Coverity issue.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_parser.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Fri May 15 11:07:05 2009
@@ -1 +1 @@
-Fri May 15 11:06:28 CDT 2009
+Fri May 15 11:06:55 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_parser.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_parser.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_parser.c Fri May 15 11:07:05 2009
@@ -335,7 +335,7 @@
char const *sip_method_name(sip_method_t method, char const *name)
{
const size_t N = sizeof(sip_method_names)/sizeof(sip_method_names[0]);
- if (method > 0 && (size_t)method <= N)
+ if (method > 0 && (size_t)method < N)
return sip_method_names[method];
else if (method == 0)
return name;
More information about the Freeswitch-svn
mailing list