[asterisk-bugs] [JIRA] (ASTERISK-29049) Memory Leak caused by fix for ASTERISK-28445
Bernhard Schmidt (JIRA)
noreply at issues.asterisk.org
Thu Aug 27 08:09:43 CDT 2020
Bernhard Schmidt created ASTERISK-29049:
-------------------------------------------
Summary: Memory Leak caused by fix for ASTERISK-28445
Key: ASTERISK-29049
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29049
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: pjproject/pjsip
Affects Versions: 16.2.1
Reporter: Bernhard Schmidt
I'm not exactly sure whether this affects recent versions where the patch has been merged upstream as well, I can't test that due to ASTERISK-29017 . But I haven't found any subsequent fixes so I think it is quite likely.
In ASTERISK-28445 a one-line fix has been proposed and merged to fix a use-after-free in res_pjsip_session. Backporting this to 16.2.1 in Debian the fix is leaking memory. Since the patch only changes one line to ast_strdupa a variable but doesn't free it anywhere that's probably the root cause.
https://github.com/asterisk/asterisk/commit/fbc80db350ee006cdebcb113a6daf60f95c8851d#diff-abd0465e5ff1c7907e3b8826ce1dde80
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list