Files
asterisk/channels/iax2
Naveen Albert 4558f24039 chan_iax2: Fix crash due to negative length frame lengths.
chan_iax2 has several code paths where a frame's data length
is calculated by subtraction. On some paths, there is a check
for negative length. One of these paths is missing this check,
and on this path, it is possible for the result to be negative,
leading to a crash as a result of memory operations using the
bogus length.

Add a check to capture this off-nominal case. This will log
the appropriate warnings as in other cases and prevent a crash.
Also update the log messages to be clearer.

Resolves: #1707
2026-03-26 19:23:12 +00:00
..
2021-11-19 09:02:06 -06:00
2017-12-22 15:00:14 -05:00