Skip to content
Snippets Groups Projects
Commit d67efd5e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #26628: sip: limit cipher string length to 1000

Avoid abort in PJSIP
parent 36e1e0f5
No related branches found
No related tags found
No related merge requests found
......@@ -881,8 +881,8 @@ void SIPAccount::trimCiphers()
{
int sum = 0;
int count = 0;
// PJSIP aborts if our cipher list exceeds 1010 characters
static const int MAX_CIPHERS_STRLEN = 1010;
// PJSIP aborts if our cipher list exceeds 1000 characters
static const int MAX_CIPHERS_STRLEN = 1000;
for (const auto &item : ciphers_) {
sum += strlen(pj_ssl_cipher_name(item));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment