pngme_book icon indicating copy to clipboard operation
pngme_book copied to clipboard

chunk_type: safe-to-copy bit is 0 for critical chunks

Open softmoth opened this issue 1 year ago • 1 comments

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.

softmoth avatar Oct 13 '23 20:10 softmoth

I'll check this out one #16 is merged and this PR is updated with those changes.

jrdngr avatar Oct 25 '23 18:10 jrdngr