Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG correction #42

Open
bcling opened this issue Jul 6, 2020 · 0 comments
Open

PNG correction #42

bcling opened this issue Jul 6, 2020 · 0 comments

Comments

@bcling
Copy link

bcling commented Jul 6, 2020

The current scalpel.conf file has improper PNG header/footer, and will carve an invalid PNG.

Current, incorrect header/footer:

PNG

png y 20000000 \x50\x4e\x47? \xff\xfc\xfd\xfe

Corrected header/footer:

png

png y 20000000 \x89\x50\x4e\x47\x0d\x0a\x1a\x0a \x49\x45\x4e\x44\xae\x42\x60\x82

Reference: http://www.libpng.org/pub/png/spec/1.2/PNG-Rationale.html#R.PNG-file-signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant