From 17b658ceadd08d693f23448c276958e2eea5970e Mon Sep 17 00:00:00 2001 From: jakob Date: Sat, 3 Jun 2017 19:00:07 -0400 Subject: Fully working repacker, no bugs related to the encoded output being larger than the buffer, and filenames are properly encoded. --- test/test_encoding.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_encoding.c') diff --git a/test/test_encoding.c b/test/test_encoding.c index a167359..bd63426 100644 --- a/test/test_encoding.c +++ b/test/test_encoding.c @@ -27,6 +27,7 @@ char *test_decode_utf16le(void) { char *in = "\x41\x00\x42\x00\x43\x00\x00\x00", *out = malloc(8); + memset(out, '\xff', 8); utf16le_decode(in, out, 8); mu_assert("UTF16-LE decoding failure", !strcmp(out, "ABC")); free(out); -- cgit v1.3