From c29940ca72ef114880317061d054ab97ffb87639 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 21 Mar 2017 10:33:20 -0700 Subject: tests: Fix invalid buffer size This was triggering an buffer read overflow with asan. --- tests/test_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp index 013bca9..cd3f9c0 100644 --- a/tests/test_parse.cpp +++ b/tests/test_parse.cpp @@ -1336,7 +1336,7 @@ TEST(parse_encoding_detect_auto_incomplete) { "<\x00\x00n/\x00>\x00", 8, encoding_utf16_le }, { "\x00", 8, encoding_utf16_be }, { "<\x00?n/\x00>\x00", 8, encoding_utf16_le }, - { "\x00 ", 8, encoding_utf8 }, + { "\x00 ", 2, encoding_utf8 }, // ", 25, encoding_utf8 }, { "", 25, encoding_utf8 }, -- cgit v1.2.3