提交 6e1af87d authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 763c520d
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)
{
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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论