Export to GitHub

grub4dos-chenall - issue #200

crc32 gives incorrect result on compressed files


Posted on Aug 27, 2014 by Happy Kangaroo

What steps will reproduce the problem? crc32 /test.txt.gz

What is the expected output? What do you see instead?

returns crc of uncompressed bytes!

What version of the product are you using? On what operating system? 0.4.5c 2014-08-22

Please provide any additional information below.

auto-decompress by 0x82a4=1 fixes the issue and crc32 result is then OK.

Also same for cmp command

cmp /text.txt /text1.txt.gz && echo SAME!

returns SAME even though 2nd file is much smaller and compressed.

see http://reboot.pro/topic/20000-boot-windows-iso-without-bootfixbin-press-any-key-prompt/page-3#entry186783

Comment #1

Posted on Sep 4, 2014 by Happy Hippo

How abort using new command to switch?etc 'raw'.

raw crc32 (hd0,0)/xxx.yy

raw cmp --hex (hd0,0)/xx.yy

The following commands will NEVER AUTO-DECOMPRESS. partnew write

Comment #2

Posted on Sep 5, 2014 by Happy Hippo

(No comment was entered for this change.)

Comment #3

Posted on Sep 5, 2014 by Happy Hippo

(No comment was entered for this change.)

Attachments

Comment #4

Posted on Sep 5, 2014 by Happy Kangaroo

that is working now :-)

Status: Done

Labels:
Type-Defect Priority-Medium