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

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

View File

@ -27,6 +27,7 @@
#define Xorriso_free_meM(pt) { \
if(pt != NULL) \
free((char *) pt); \
pt= NULL; \
}

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;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.04.27.165051"
#define Xorriso_timestamP "2024.04.27.165316"