Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.
https://security.gentoo.org/glsa/202211-10
https://github.com/python-pillow/Pillow/releases/tag/9.3.0
https://github.com/python-pillow/Pillow/pull/6700
https://github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3