Avoided to use MD5 on filtered streams with compare and update

This commit is contained in:
2009-09-07 16:11:46 +00:00
parent 5fde82ba76
commit b2192ec4f7
4 changed files with 21 additions and 6 deletions

View File

@ -7346,7 +7346,11 @@ cannot_address:;
if(xorriso->do_md5 & 16) {
use_md5= 1;
ret= Xorriso_get_md5(xorriso, NULL, iso_adr, iso_md5, 1);
ret= Xorriso_is_plain_image_file(xorriso, NULL, iso_adr, 0);
if(ret <= 0)
ret= 0; /* (reverse) filtered files are likely not to match their MD5 */
else
ret= Xorriso_get_md5(xorriso, NULL, iso_adr, iso_md5, 1);
if(ret <= 0)
use_md5= 0;
else {