Closed 3iang closed 10 months ago
RFC1123 limits the year field should be a 4-digit number and the limitation is implemented in libpng.
Could you reference where this check is made? I don't see it in v1.6.40: https://github.com/glennrp/libpng/blob/v1.6.40/pngset.c#L956-L977
It's better to avoid adding minor error checks that aren't already in libpng, they create interoperability issues.
Describe the bug A clear and concise description of what the bug is. RFC1123 limits the year field should be a 4-digit number and the limitation is implemented in libpng. However, if it is on purpose in libspng, just ignore this issue.
NOTE: Bugs that can cause a crash or memory leak should not be reported on GitHub! Send an e-mail to contact@libspng.org instead.
To Reproduce Steps to reproduce the behavior: code snippet, PNG file (if applicable), error message(s).
Expected behavior A clear and concise description of what you expected to happen.
return 1 when year > 9999
Platform (please complete the following information):
Additional context Add any other context about the problem here.