[Home]

Summary:ASTERISK-09384: [patch] Random crash when checking version attribute in an incoming XML caps element
Reporter:phsultan (phsultan)Labels:
Date Opened:2007-05-04 14:14:40Date Closed:2007-05-04 15:06:36
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Resources/res_jabber
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) branch-1.4-version_check_crash-1.diff
Description:Crashes always happen in function aji_find_version, when comparing strings :
while(res) {
if(!strcasecmp(res->version, version))
return res;
res = res->next;
}

This is because the 'capabilities' list is not properly populated when inserting the first aji_version element for a given node. res->next should not point to list->versions, which contains a char pointer (version) to an unintialized (malloc-ed) value.

The attached patch make res->next point to NULL when inserting a new aji_version element.
Comments:By: phsultan (phsultan) 2007-05-04 14:17:45

SVN revision is 62945

By: Jason Parker (jparker) 2007-05-04 15:06:36

Fixed in svn 1.4 and trunk in revisions 63099 and 63104.