Bug fix: Command -truncate_overwritable on ISO image without MD5 caused double free of memory

This commit is contained in:
2024-04-27 18:53:40 +02:00
parent 2af1e90639
commit a26df9c49f
3 changed files with 3 additions and 2 deletions

View File

@ -3616,7 +3616,7 @@ int Xorriso_adjust_relocated_sb(struct XorrisO *xorriso,
if(ret <= 0)
goto ex;
ret= Xorriso_find_sb_checksum(xorriso, buffer, &vd_end, 0);
if(ret <= 0)
if(ret < 0)
goto ex;
if(ret > 0) {
checksum_block= ret - 1;