]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2: Add another check to abort frame handling if datalen < 0. master
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 11 Apr 2026 16:57:18 +0000 (12:57 -0400)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 14 Apr 2026 15:45:51 +0000 (15:45 +0000)
commitce9765032fe10a3b0d084604a8f4d87966411313
tree64e7726bda17a95b2dfb21a72001e7b306a5b96a
parent8afbd78139be62509468c1cda5573bdf595f5481
chan_iax2: Add another check to abort frame handling if datalen < 0.

Commit 2da221e217cbff957af928e8df43ee25583232d1 added a missing abort
if datalen < 0 check on a code path and an assertion inside
iax_frame_wrap if we ever encountered a frame with a negative frame
length (which will eventually cause a crash).

Add another missing abort check for negative datalen, exposed by this
assertion. (Similar to the previous commit, this is a video frame with
a datalen of -1).

Resolves: #1865
channels/chan_iax2.c