0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +08:00

tests: Fix invalid buffer size

This was triggering an buffer read overflow with asan.
This commit is contained in:
Arseny Kapoulkine 2017-03-21 10:33:20 -07:00
parent db98a7e28b
commit c29940ca72

View File

@ -1336,7 +1336,7 @@ TEST(parse_encoding_detect_auto_incomplete)
{ "<\x00\x00n/\x00>\x00", 8, encoding_utf16_le },
{ "\x00<n\x00\x00/\x00>", 8, encoding_utf16_be },
{ "<\x00?n/\x00>\x00", 8, encoding_utf16_le },
{ "\x00 ", 8, encoding_utf8 },
{ "\x00 ", 2, encoding_utf8 },
// <?xml encoding
{ "<?xmC encoding='latin1'?>", 25, encoding_utf8 },
{ "<?xBC encoding='latin1'?>", 25, encoding_utf8 },