pngme_book
pngme_book copied to clipboard
chunk_type: safe-to-copy bit is 0 for critical chunks
The PNG spec states "the safe-to-copy bit will always be 0 for critical
chunks". All of the tests should respect this. One test has been added
to ensure this (chunk_type::test_invalid_safetocopy
).
This required changing many tests, as they used "RuSt"
, which is not
a valid chunk type.
This PR is built on top of #16. If that PR is rejected, I can rework this to match the project's goals, just let me know what's wanted.
Fixes #11.
I'll check this out one #16 is merged and this PR is updated with those changes.