mirror of https://github.com/asterisk/asterisk
Change rawdata buffer from char to unsigned char to prevent sign-extension of TLV length bytes >= 0x80. On signed-char platforms (all Asterisk builds due to -fsigned-char in configure.ac), these values become negative when assigned to int, bypass the `if (res > 32)` bounds check, and reach memcpy as size_t producing a ~18 EB read that immediately crashes with SIGSEGV. Affects DAHDI analog (FXO) channels only. Not reachable via SIP, PRI/BRI, or DTMF-based Caller ID. Fixes: #1839pull/1850/head
parent
500525c289
commit
3e0817d8e6
Loading…
Reference in new issue