diff --git a/checks/check_fli_oob.py b/checks/check_fli_oob.py old mode 100644 new mode 100755 index e0057a2c2ad..ac46ff1ebc0 --- a/checks/check_fli_oob.py +++ b/checks/check_fli_oob.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations from PIL import Image diff --git a/checks/check_fli_overflow.py b/checks/check_fli_overflow.py old mode 100644 new mode 100755 index 5c89efc7666..50137c4cc48 --- a/checks/check_fli_overflow.py +++ b/checks/check_fli_overflow.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations from PIL import Image diff --git a/checks/check_icns_dos.py b/checks/check_icns_dos.py old mode 100644 new mode 100755 index ac6be4869b3..c4d41ca7da1 --- a/checks/check_icns_dos.py +++ b/checks/check_icns_dos.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Tests potential DOS of IcnsImagePlugin with 0 length block. # Run from anywhere that PIL is importable. from __future__ import annotations diff --git a/checks/check_j2k_dos.py b/checks/check_j2k_dos.py old mode 100644 new mode 100755 index 2c63c340214..756df21a6d4 --- a/checks/check_j2k_dos.py +++ b/checks/check_j2k_dos.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Tests potential DOS of Jpeg2kImagePlugin with 0 length block. # Run from anywhere that PIL is importable. from __future__ import annotations diff --git a/checks/check_j2k_leaks.py b/checks/check_j2k_leaks.py old mode 100644 new mode 100755 index 7103d502e40..7170334c395 --- a/checks/check_j2k_leaks.py +++ b/checks/check_j2k_leaks.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import sys diff --git a/checks/check_j2k_overflow.py b/checks/check_j2k_overflow.py old mode 100644 new mode 100755 index 58566c4b219..eb333e1f670 --- a/checks/check_j2k_overflow.py +++ b/checks/check_j2k_overflow.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations from pathlib import Path diff --git a/checks/check_jp2_overflow.py b/checks/check_jp2_overflow.py old mode 100644 new mode 100755 index 954d68bf7e3..894ec5f7409 --- a/checks/check_jp2_overflow.py +++ b/checks/check_jp2_overflow.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Reproductions/tests for OOB read errors in FliDecode.c # When run in python, all of these images should fail for diff --git a/checks/check_jpeg_leaks.py b/checks/check_jpeg_leaks.py old mode 100644 new mode 100755 index 2c27ce1d5af..da180ae2c66 --- a/checks/check_jpeg_leaks.py +++ b/checks/check_jpeg_leaks.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import sys diff --git a/checks/check_large_memory.py b/checks/check_large_memory.py old mode 100644 new mode 100755 index c9feda3b1b0..59870c51f8d --- a/checks/check_large_memory.py +++ b/checks/check_large_memory.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import sys diff --git a/checks/check_large_memory_numpy.py b/checks/check_large_memory_numpy.py old mode 100644 new mode 100755 index 458b0ab72d2..befe1187551 --- a/checks/check_large_memory_numpy.py +++ b/checks/check_large_memory_numpy.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import sys diff --git a/checks/check_libtiff_segfault.py b/checks/check_libtiff_segfault.py old mode 100644 new mode 100755 index 84bda53ed28..d1cb33fab88 --- a/checks/check_libtiff_segfault.py +++ b/checks/check_libtiff_segfault.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import pytest diff --git a/checks/check_png_dos.py b/checks/check_png_dos.py old mode 100644 new mode 100755 index 1bfb94ab7f7..3da251a7af9 --- a/checks/check_png_dos.py +++ b/checks/check_png_dos.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import zlib diff --git a/checks/check_release_notes.py b/checks/check_release_notes.py old mode 100644 new mode 100755 index cf414d7fff0..e92c9bc6aea --- a/checks/check_release_notes.py +++ b/checks/check_release_notes.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import sys diff --git a/checks/check_wheel.py b/checks/check_wheel.py old mode 100644 new mode 100755 index 937722c4bab..1058f086ab1 --- a/checks/check_wheel.py +++ b/checks/check_wheel.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import annotations import platform