[asterisk-bugs] [JIRA] (ASTERISK-17946) AST_STRING_FIELD new pointer overlap the last string on MIPS

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Feb 25 23:05:34 CST 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-17946.
----------------------------------

    Resolution: Fixed

> AST_STRING_FIELD new pointer overlap the last string on MIPS
> ------------------------------------------------------------
>
>                 Key: ASTERISK-17946
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17946
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Utilities/General
>    Affects Versions: 1.8.3
>            Reporter: Pascal Yu
>         Attachments: asterisk-1.8.5.0-alignment.diff
>
>
> Found a VOIP provider failed to authenticate account after upgrade to 1.8.3 from 1.6.1.
> Traced SIP packet, found an extra non-readable character following Contact header, inside the 2nd INVITE with md5 digest responded to 401 from provider proxy. The first INVITE is ok though. Didn't find smilar issue reported by google search or forum search.
> I'm not a developer, but a system admin, so not an expert on coding. Took me several days found the code that missing a line for MIPS (SPARC) platform. I'm using * on the router with Openwrt. Thus everybody else using it on X86 should be ok. 
> I think it might better to report it so it would help for those who use it on SPARC or MIPS. Checked 1.8.4 code still unchanged.
> ****** ADDITIONAL INFORMATION ******
> patch,
> --- /home/pascal/util.c.asterisk18.orig 2011-05-27 22:41:21.000000000 -0400
> +++ asterisk-1.8.3.2/main/utils.c       2011-05-28 20:04:05.000000000 -0400
> @@ -1718,6 +1718,7 @@
>                 if ((long) target % sizeof(ast_string_field_allocation)) {
>                         target++;
>                         space--;
> +                       (*pool_head)->used ++;
>                 }
>  #endif
>                 available = space - sizeof(ast_string_field_allocation);
>  



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



More information about the asterisk-bugs mailing list