[libpng14] Avoid out-of-bounds memory access in png_user_version_check().

Simplified and future-proofed png_user_version_check().
4 files changed