From 53b2d6dcd7242744fe432708dabfdeef35b5b2a9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 22 Sep 2017 17:26:02 +0200 Subject: [PATCH] Bug fix: Reading beyond array end for HFS+ production caused SIGSEGV with FreeBSD 11 CLANG -O2. Thanks ASX of GhostBSD. --- libisofs/hfsplus_classes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libisofs/hfsplus_classes.c b/libisofs/hfsplus_classes.c index d3a9f0f..f00822d 100644 --- a/libisofs/hfsplus_classes.c +++ b/libisofs/hfsplus_classes.c @@ -422,6 +422,10 @@ static uint16_t class_page_data[] = { 0x21, 0x230, 0x22, 0x230, 0x23, 0x230, + 0x00, + + /* End of list */ + 0x00 }; uint16_t *hfsplus_class_pages[256];