mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
Wed May 13 11:09:06 CDT 2009 Pekka Pessi <first.last@nokia.com>
* sip_parser.c: fixed overrrun in sip_method_name() Ignore-this: efe0fc0935451b1b0ee403befac5df40 Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13339 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
763c520d49
commit
6e1af87d26
@ -1 +1 @@
|
|||||||
Fri May 15 11:06:28 CDT 2009
|
Fri May 15 11:06:55 CDT 2009
|
||||||
|
@ -335,7 +335,7 @@ char const * const sip_method_names[] = {
|
|||||||
char const *sip_method_name(sip_method_t method, char const *name)
|
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]);
|
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];
|
return sip_method_names[method];
|
||||||
else if (method == 0)
|
else if (method == 0)
|
||||||
return name;
|
return name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user