kxylxp / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

crc32 gives incorrect result on compressed files #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by Steve6375 on 27 Aug 2014 at 5:39

GoogleCodeExporter commented 8 years ago
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

Original comment by chenall.cn on 4 Sep 2014 at 1:20

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 5 Sep 2014 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 5 Sep 2014 at 12:02

Attachments:

GoogleCodeExporter commented 8 years ago
that is working now :-)

Original comment by Steve6375 on 5 Sep 2014 at 12:25