Diff between 20e74fef8785156cc8ac8b2415f218c1905fe4fa and a36ee4a4eecb4fc5f3667ce1c3304092f414909b
Changed Files
| File | Additions | Deletions | Status |
| src/sdp-xml.c | +4 | -0 | modified |
Full Patch
diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index a9c4723..0535d09 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
@@ -369,6 +369,8 @@ static sdp_data_t *sdp_xml_parse_url(const char *data)
url = sdp_xml_parse_string_decode(data,
SDP_XML_ENCODING_NORMAL, &length);
+ if (!url)
+ return NULL;
if (length > UCHAR_MAX)
dtd = SDP_URL_STR16;
@@ -388,6 +390,8 @@ static sdp_data_t *sdp_xml_parse_text(const char *data, char encoding)
sdp_data_t *ret;
text = sdp_xml_parse_string_decode(data, encoding, &length);
+ if (!text)
+ return NULL;
if (length > UCHAR_MAX)
dtd = SDP_TEXT_STR16;