test: Add regression tests for CVE-2026-46675

This tests commit 6c7783b151377f591c83955e23da50991ad1a600.

This is a cherry-pick of commit 682e5fe8003ad8d5fa398b00a8a6ca3cdf03f6b6
from branch 'libpng18'.
7 files changed