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:
Michael Jerris 2009-05-15 16:07:05 +00:00
parent 763c520d49
commit 6e1af87d26
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
Fri May 15 11:06:28 CDT 2009
Fri May 15 11:06:55 CDT 2009

View File

@ -335,7 +335,7 @@ char const * const sip_method_names[] = {
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;