Skip to content

Instantly share code, notes, and snippets.

@grahamc

grahamc/foo.md Secret

Last active May 15, 2018 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/ab7ca5df20cf8b4ffa2e2fff98e8b613 to your computer and use it in GitHub Desktop.
Save grahamc/ab7ca5df20cf8b4ffa2e2fff98e8b613 to your computer and use it in GitHub Desktop.

I've been seeing just about random corruption in a squashfs inside my ramdisk, so I split -n200 the one received and the one sent, sha256sum'd the two sets of split pieces, suspiciously only a single section was corrupt:

# diff orig.sha broke.sha 
163c163
< 2d280c2acbc1fb4d9ad788a2018ade18151fc462246fa415555f921b72829b23  ./xgg
---
> feee29ea112be2d05b82c952bd6ba5715708b782adf5eabf3cf518258784463d  ./xgg

so I diffoscoped those two, and:

# diffoscope orig/xgg ./broke/xgg
--- orig/xgg
+++ ./broke/xgg
...snip...
-000d9720: b21d 155a f955 e13e 1722 fe47 a216 3fbc  ...Z.U.>.".G..?.
+000d9720: b21d 155a f955 e03e 1722 fe47 a216 3fbc  ...Z.U.>.".G..?.

a 1 became a 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment