]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Fix crash during caller ID read
authorKinsey Moore <kmoore@digium.com>
Tue, 12 Nov 2013 15:00:36 +0000 (15:00 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 12 Nov 2013 15:00:36 +0000 (15:00 +0000)
commitc5c9050b89657946adbff2b7744603246fe9b81a
tree4f21e1837f47d047bea76c54db26bde206c7f4db
parent6d85bb82e1883c2a60b5ec367f15ab07045e91ac
chan_dahdi: Fix crash during caller ID read

Asterisk will sometimes core dump during caller id read on analog
channels due to a negative return value from the read() in
my_get_callerid that slips through as a negative length argument to
callerid_feed() if the errno returned by DAHDI is ELAST. This change
ensures that the negative return is treated properly even when it is
ELAST.

(closes issue ASTERISK-22746)
Reported by: Michael Walton
Patches:
    chan_dahdi_cid_crash_fix.r401410.patch uploaded by Michael Walton (License 6502)
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@402709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c