]> 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 14:55:49 +0000 (14:55 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 12 Nov 2013 14:55:49 +0000 (14:55 +0000)
commit0a77dc9dca0682e363da05e90dbd2306e8559d40
treedf790fdedb4ca2b651f2ed4875ed1de569146270
parent66f9f109013a5b59e6cd07c2ad90726dc6889941
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)

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