From f3b5688159c60495f48db3942a36509671dfce89 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 3 Jul 2026 16:55:03 +0300 Subject: [PATCH] Tests: Comment that a sanitizer may be needed for lzma_index_append() bug Fixes: a3ea8832bec1 ("Tests: Add a test for the lzma_index_prealloc() + lzma_index_append() bug") Link: https://github.com/tukaani-project/xz/issues/233 --- tests/test_index.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_index.c b/tests/test_index.c index 50e554ff..5501332e 100644 --- a/tests/test_index.c +++ b/tests/test_index.c @@ -1760,6 +1760,8 @@ test_lzma_index_buffer_decode(void) // With liblzma <= 5.8.2 (before the commit c8c22869e780), // this triggers a buffer overflow in lzma_index_append(). +// This test might require building with -fsanitize=undefined,address +// to catch the bug. static void test_decode_empty_and_append(void) {