]> 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:30:12 +0000 (08:30 -0600)
commit4a1b8ca6d7c870e08a28c02323b59259665c6519
treed2a220a74f076a46e36b4710d5af7fc8ceb3599c
parent6285575eac5ecd89ed1290e8124593a7e6a7a23e
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