]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2018-004: Restrict the number of Accept headers in a SUBSCRIBE.
authorJoshua Colp <jcolp@digium.com>
Wed, 7 Feb 2018 14:09:14 +0000 (14:09 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 21 Feb 2018 14:29:26 +0000 (14:29 +0000)
commitde5df002a0ef14b494b57727bf73fabcf4bd1d04
tree5466d4c40ade8308e2884eb22c9d7d52b22ee6b0
parent4f166b90178d8fe6ec0feed70c7492fea87b9ea1
AST-2018-004: Restrict the number of Accept headers in a SUBSCRIBE.

When receiving a SUBSCRIBE request the Accept headers from it are
stored locally. This operation has a fixed limit of 32 Accept headers
but this limit was not enforced. As a result it was possible for
memory outside of the allocated space to get written to resulting
in a crash.

This change enforces the limit so only 32 Accept headers are
processed.

ASTERISK-27640
Reported By: Sandro Gauci

Change-Id: I99a814b10b554b13a6021ccf41111e5bc95e7301
res/res_pjsip_pubsub.c