Skip to content

Commit

Permalink
xml: properly handle oom when extending $xml result buffer
Browse files Browse the repository at this point in the history
Fixes Coverity CID #200068
  • Loading branch information
rvlad-patrascu committed Jul 15, 2020
1 parent 3b20c9d commit 3112b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/xml/xml.c
Expand Up @@ -545,6 +545,7 @@ int pv_get_xml(struct sip_msg* msg, pv_param_t* pvp, pv_value_t* res)
xmlBufferFree(xml_buf);
else
xmlFree(xml_buf_s);
return pv_get_null( msg, pvp, res);
}

memcpy(res_buf.s, xml_buf_s, xml_buf_len);
Expand Down

0 comments on commit 3112b59

Please sign in to comment.