mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* command: hashsum: md5sum reports wrong sum for the file named 4k.bin
@ 2017-12-20 10:48 Peter Mamonov
  2017-12-21 10:48 ` Peter Mamonov
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Mamonov @ 2017-12-20 10:48 UTC (permalink / raw)
  To: barebox

Hi,

The md5sum command reports wrong sum for a file named 4k.bin and, I guess, for 
other files named alike. Here are the commands to reproduce the bug:

	barebox@barebox sandbox:/ memcpy -s /dev/zero -d _4k.bin 0 0 4k
	barebox@barebox sandbox:/ md5sum _4k.bin
	620f0b67a91f7f74151bc5be745b7110  _4k.bin
	
	barebox@barebox sandbox:/ cp _4k.bin 4k.bin
	barebox@barebox sandbox:/ md5sum 4k.bin
	d41d8cd98f00b204e9800998ecf8427e  4k.bin
	
	barebox@barebox sandbox:/ cp 4k.bin __4k.bin
	barebox@barebox sandbox:/ md5sum __4k.bin 
	620f0b67a91f7f74151bc5be745b7110  __4k.bin
	
	barebox@barebox sandbox:/ version
	
	barebox 2017.12.0 #4 Wed Dec 20 12:26:57 MSK 2017
	
	barebox@barebox sandbox:/ Terminated
	
	$ dd if=/dev/zero bs=4k count=1 | md5sum
	...
	620f0b67a91f7f74151bc5be745b7110  -

Regards,
Peter

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-01-17  9:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-20 10:48 command: hashsum: md5sum reports wrong sum for the file named 4k.bin Peter Mamonov
2017-12-21 10:48 ` Peter Mamonov
2018-01-05 11:44   ` Sascha Hauer
2018-01-05 18:17     ` Peter Mamonov
2018-01-09 11:10       ` Sascha Hauer
2018-01-09 14:21         ` [PATCH] lib: parse_area_spec: don't modify *start and *size values if parse failed Peter Mamonov
2018-01-11  8:15           ` Sascha Hauer
2018-01-11 17:28             ` Peter Mamonov
2018-01-15 11:32             ` [PATCH v2 1/3] lib: parse_area_spec: don't modify *start value " Peter Mamonov
2018-01-15 11:32               ` [PATCH v2 2/3] lib: parse_area_spec: part of the area spec after -/+ should start with a digit Peter Mamonov
2018-01-15 11:32               ` [PATCH v2 3/3] lib: parse_area_spec: no extra symbols after area spec are allowed except for spaces Peter Mamonov
2018-01-17  8:11               ` [PATCH v2 1/3] lib: parse_area_spec: don't modify *start value if parse failed Sascha Hauer
2018-01-17  9:31                 ` Peter Mamonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox