]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Handle integer over/under-flow in ast_parse_args
authorTerry Wilson <twilson@digium.com>
Thu, 16 Aug 2012 23:02:46 +0000 (23:02 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 16 Aug 2012 23:02:46 +0000 (23:02 +0000)
commited2b01f30169bb81a2fc125ffe6a4e6d53a836cc
tree34a52b5a1b7b1cdcae66c94b9c5810bbd6436c46
parent94bbcafcd27beb552a77063b60dd8ce9a2bc35c7
Handle integer over/under-flow in ast_parse_args

The strtol family of functions will return *_MIN/*_MAX on overflow. To
detect when an overflow has happened, errno must be set to 0 before
calling the function, then checked afterward.

(closes issue ASTERISK-20120)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2073/
........

Merged revisions 371392 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 371398 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@371399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c