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