When pseudo-blanking: Invalidate all ECMA-119 volume descriptors, not only PVD

This commit is contained in:
Thomas Schmitt 2017-05-05 14:31:57 +02:00
parent 22d552ad60
commit e72d702ce7
2 changed files with 6 additions and 6 deletions

View File

@ -676,11 +676,11 @@ int isoburn_invalidate_iso(struct isoburn *o, int flag)
head= (char *) o->target_iso_head; head= (char *) o->target_iso_head;
/* /*
* replace CD001 with CDXX1 in PVM. * replace CD001 with CDXX1 in PVM.
* I think this is enought for invalidating an iso image
*/ */
strncpy(head + 16 * 2048 + 1, "CDXX1", 5); strncpy(head + 16 * 2048 + 1, "CDXX1", 5);
/* Look for UDF volume recognition sequence and invalidate */ /* Invalidate further ECMA-119 volume descriptors and possible UDF volume
recognition sequence */
for(i= 17 * 2048; i < 32 * 2048; i+= 2048) { for(i= 17 * 2048; i < 32 * 2048; i+= 2048) {
if(end_ed_found) { if(end_ed_found) {
if(head[i] == 0 && strncmp(head + i + 1, "BEA01", 5) == 0) if(head[i] == 0 && strncmp(head + i + 1, "BEA01", 5) == 0)
@ -689,10 +689,10 @@ int isoburn_invalidate_iso(struct isoburn *o, int flag)
strncpy(head + i + 1, "NSRX", 4); strncpy(head + i + 1, "NSRX", 4);
else if(head[i] == 0 && strncmp(head + i + 1, "TEA", 3) == 0) else if(head[i] == 0 && strncmp(head + i + 1, "TEA", 3) == 0)
strncpy(head + i + 1, "TEAX", 4); strncpy(head + i + 1, "TEAX", 4);
} else { } else if(strncmp(head + i + 1, "CD001", 5) == 0) {
if(((unsigned char *) head)[i] == 0xff && if(((unsigned char *) head)[i] == 0xff)
strncmp(head + i + 1, "CD001", 5) == 0)
end_ed_found= 1; end_ed_found= 1;
strncpy(head + i + 3, "XX", 2);
} }
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2017.04.25.135002" #define Xorriso_timestamP "2017.05.05.123120"