From d67efd5e23760466de88cbffc6e12c56d7ed7f93 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Mon, 26 Aug 2013 12:42:55 -0400 Subject: [PATCH] * #26628: sip: limit cipher string length to 1000 Avoid abort in PJSIP --- daemon/src/sip/sipaccount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp index 45e0fc06a9..37bb738d4f 100644 --- a/daemon/src/sip/sipaccount.cpp +++ b/daemon/src/sip/sipaccount.cpp @@ -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)); -- GitLab