[asterisk-bugs] [JIRA] (ASTERISK-26119) [patch] fix: memory leaks, resource leaks, out of bounds and bugs

ibercom (JIRA) noreply at issues.asterisk.org
Mon Jul 11 12:43:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231376#comment-231376 ] 

ibercom commented on ASTERISK-26119:
------------------------------------

[~alexei gradinari]: I think so, the patch to main/ast_expr2.y and main/ast_expr2.c has introduced a leaks in error paths.

{noformat}
	if (vs == NULL) {
		ast_log(LOG_WARNING, "malloc() failed\n");
		return NULL;
	}
{noformat}

It needs a:

{noformat}
	free_value(a);
	free_value(b);
{noformat}

before "return NULL".


> [patch] fix: memory leaks, resource leaks, out of bounds and bugs
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-26119
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26119
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General, Resources/res_phoneprov, Resources/res_pjsip_sdp_rtp
>    Affects Versions: 13.9.1
>            Reporter: Alexei Gradinari
>
> Fixed memory leaks in
>  - main/ast_expr2.y
>  - res/ael/pval.c
> Fixed resource leaks in
>  - res/res_phoneprov.c
> Fixed accessing buffer out of bounds in
>  - main/say.c
> Fixed bug checking pointer arithmetic result instead of value by index



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list