python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.35k stars 2.24k forks source link

Fix dereference before checking for NULL in ImagingTransformAffine #8398

Closed PavlNekrasov closed 2 months ago

PavlNekrasov commented 2 months ago

The imIn pointer is checked for NULL, but it seems to be dereferenced before this check. You must first make sure that the pointer is not NULL before using it.

Found by Linux Verification Center (linuxtesting.org) with SVACE. Reporter: Pavel Nekrasov (p.nekrasov@fobos-nt.ru).