Avoid endless loop in unescape_xml_string

* src/abg-libxml-utils.cc (unescape_xml_string): Avoid and endless
	loop for strings containing an '&' but that are not pre-defined
	entities.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-01-17 11:37:06 +01:00
parent cedf8e9cec
commit d5a926ebfb

View File

@ -268,6 +268,11 @@ unescape_xml_string(const std::string& str,
escaped += '"';
i += 6;
}
else
{
escaped += str[i];
++i;
}
}
else
{