From 08792a47117b3184a677313e17e2a062bbba77ba Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 7 Aug 2024 15:19:15 +0200 Subject: [PATCH] Corrected a memory infringement in iso_util_decode_lfa_flags() --- libisofs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/util.c b/libisofs/util.c index b593f49..9c6a08b 100644 --- a/libisofs/util.c +++ b/libisofs/util.c @@ -2613,10 +2613,10 @@ int iso_util_decode_lfa_flags(char *flags_text, uint64_t *lfa_flags, int flag) for (i = 0; flags_text[i] != 0; i++) { if (flags_text[i] == '-') continue; - for (j = 0; j < 64; j++) + for (j = 0; j < 32; j++) if (lfa_flag_letters[j] == flags_text[i]) break; - if (j >= 64) { + if (j >= 32) { was_unknown = 1; continue; }