Browse Source

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

master
Thomas Schmitt 5 years ago
parent
commit
e72d702ce7
  1. 10
      libisoburn/isofs_wrap.c
  2. 2
      xorriso/xorriso_timestamp.h

10
libisoburn/isofs_wrap.c

@ -676,11 +676,11 @@ int isoburn_invalidate_iso(struct isoburn *o, int flag)
head= (char *) o->target_iso_head;
/*
* replace CD001 with CDXX1 in PVM.
* I think this is enought for invalidating an iso image
*/
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) {
if(end_ed_found) {
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);
else if(head[i] == 0 && strncmp(head + i + 1, "TEA", 3) == 0)
strncpy(head + i + 1, "TEAX", 4);
} else {
if(((unsigned char *) head)[i] == 0xff &&
strncmp(head + i + 1, "CD001", 5) == 0)
} else if(strncmp(head + i + 1, "CD001", 5) == 0) {
if(((unsigned char *) head)[i] == 0xff)
end_ed_found= 1;
strncpy(head + i + 3, "XX", 2);
}
}

2
xorriso/xorriso_timestamp.h

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

Loading…
Cancel
Save