]> 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:52 +0000 (08:29 -0600)
commit7926348626fba20941c19280215905661a1c1e63
tree58b9e530ae066a0caf81136eea47cf3a7c3740a1
parentf6757b1d60512e91e60f808a772d9681cbe65dee
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