mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 07:24:34 +00:00
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:
parent
cedf8e9cec
commit
d5a926ebfb
@ -268,6 +268,11 @@ unescape_xml_string(const std::string& str,
|
||||
escaped += '"';
|
||||
i += 6;
|
||||
}
|
||||
else
|
||||
{
|
||||
escaped += str[i];
|
||||
++i;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user