From 5e79dc32e57a57af9fa66836fdb631913503b776 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 19 May 2024 09:43:18 +0200 Subject: [PATCH] Bug fix: Size assessment of ISO images smaller than 32 KiB yielded random values --- libisoburn/burn_wrap.c | 5 +++++ xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libisoburn/burn_wrap.c b/libisoburn/burn_wrap.c index 5e019d08..a36ab1bd 100644 --- a/libisoburn/burn_wrap.c +++ b/libisoburn/burn_wrap.c @@ -1523,6 +1523,11 @@ int isoburn_emulate_toc(struct burn_drive *d, int flag) ret= 1; goto failure; /* This will represent the medium as single session */ } + if(!(lba < image_size || (flag&2))) { + /* Not enough readable space for chained session superblocks */ + ret= 1; + goto failure; + } } while(lba