Python Imaging Library (fork)
1126 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 170 | def _find_library_dirs_ldconfig() -> list[str]: |
| LOW | checks/check_large_memory.py | 51 | def test_size_greater_than_int() -> None: |
| LOW | Tests/test_imagecms.py | 235 | def test_unsupported_color_space() -> None: |
| LOW | Tests/test_imagecms.py | 245 | def test_invalid_color_temperature() -> None: |
| LOW | Tests/test_imagecms.py | 349 | def test_extended_information() -> None: |
| LOW | Tests/test_imagecms.py | 354 | def assert_truncated_tuple_equal( |
| LOW | Tests/test_imagecms.py | 536 | def test_transform_typesafety() -> None: |
| LOW | Tests/test_imagecms.py | 544 | def assert_aux_channel_preserved( |
| LOW | Tests/test_imagecms.py | 603 | def test_preserve_auxiliary_channels_rgba() -> None: |
| LOW | Tests/test_imagecms.py | 609 | def test_preserve_auxiliary_channels_rgba_in_place() -> None: |
| LOW | Tests/test_imagecms.py | 615 | def test_preserve_auxiliary_channels_rgbx() -> None: |
| LOW | Tests/test_imagecms.py | 621 | def test_preserve_auxiliary_channels_rgbx_in_place() -> None: |
| LOW | Tests/test_imagecms.py | 627 | def test_auxiliary_channels_isolated() -> None: |
| LOW | Tests/test_image_paste.py | 360 | def test_incorrect_abbreviated_form(self) -> None: |
| LOW | Tests/test_file_msp.py | 84 | def test_cannot_save_wrong_mode(tmp_path: Path) -> None: |
| LOW | Tests/test_image_array.py | 98 | def test_fromarray_strides_without_tobytes() -> None: |
| LOW | Tests/test_file_xbm.py | 55 | def test_open_filename_with_underscore() -> None: |
| LOW | Tests/test_file_psd.py | 123 | def test_open_after_exclusive_load() -> None: |
| LOW | Tests/test_file_psd.py | 135 | def test_negative_top_left_layer() -> None: |
| LOW | Tests/test_file_psd.py | 160 | def test_combined_larger_than_size() -> None: |
| LOW | Tests/test_file_psd.py | 215 | def test_bounds_crash_overflow() -> None: |
| LOW | Tests/test_imagewin.py | 104 | def test_dib_frombytes_tobytes_roundtrip(self) -> None: |
| LOW | Tests/test_imageshow.py | 62 | def test_show_without_viewers(monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | Tests/test_features.py | 54 | def test_libjpeg_turbo_version() -> None: |
| LOW | Tests/test_features.py | 61 | def test_libimagequant_version() -> None: |
| LOW | Tests/test_features.py | 77 | def test_check_warns_on_nonexistent() -> None: |
| LOW | Tests/test_file_xpm.py | 55 | def test_not_enough_image_data() -> None: |
| LOW | Tests/test_core_resources.py | 87 | def test_set_block_size_stats(self) -> None: |
| LOW | Tests/test_core_resources.py | 120 | def test_set_blocks_max_stats(self) -> None: |
| LOW | Tests/test_file_pcx.py | 137 | def test_break_in_count_overflow( |
| LOW | Tests/test_file_png.py | 237 | def test_load_transparent_rgb(self) -> None: |
| LOW | Tests/test_file_png.py | 251 | def test_save_p_transparent_palette(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_png.py | 274 | def test_save_p_single_transparency(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_png.py | 299 | def test_save_p_transparent_black(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_png.py | 317 | def test_save_grayscale_transparency(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_png.py | 351 | def test_save_rgb_single_transparency(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_png.py | 388 | def test_verify_ignores_crc_error(self, monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | Tests/test_file_png.py | 402 | def test_verify_not_ignores_crc_error_in_required_chunk( |
| LOW | Tests/test_file_png.py | 575 | def test_roundtrip_icc_profile(self) -> None: |
| LOW | Tests/test_file_png.py | 582 | def test_roundtrip_no_icc_profile(self) -> None: |
| LOW | Tests/test_file_png.py | 598 | def test_repr_png_error_returns_none(self) -> None: |
| LOW | Tests/test_file_png.py | 635 | def test_roundtrip_private_chunk(self) -> None: |
| LOW | Tests/test_file_png.py | 653 | def test_textual_chunks_after_idat(self, monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | Tests/test_file_png.py | 684 | def test_unknown_compression_method(self) -> None: |
| LOW | Tests/test_imagegrab.py | 58 | def test_grab_invalid_xdisplay(self) -> None: |
| LOW | Tests/test_imagegrab.py | 163 | def test_grabclipboard_wl_clipboard(self, ext: str) -> None: |
| LOW | Tests/test_imagegrab.py | 179 | def test_grabclipboard_wl_clipboard_errors(self, arg: str) -> None: |
| LOW | Tests/test_shell_injection.py | 26 | def assert_save_filename_check( |
| LOW | Tests/test_shell_injection.py | 50 | def test_save_netpbm_filename_bmp_mode(self, tmp_path: Path) -> None: |
| LOW | Tests/test_shell_injection.py | 58 | def test_save_netpbm_filename_l_mode(self, tmp_path: Path) -> None: |
| LOW | Tests/test_file_bmp.py | 41 | def test_fallback_if_mmap_errors() -> None: |
| LOW | Tests/test_file_bmp.py | 229 | def test_unsupported_bmp_bitfields_layout() -> None: |
| LOW | Tests/test_file_im.py | 110 | def test_save_unsupported_mode(tmp_path: Path) -> None: |
| LOW | Tests/test_image_rotate.py | 143 | def test_alpha_rotate_no_fill() -> None: |
| LOW | Tests/test_image_rotate.py | 151 | def test_alpha_rotate_with_fill() -> None: |
| LOW | Tests/test_pickle.py | 87 | def test_pickle_la_mode_with_palette(tmp_path: Path) -> None: |
| LOW | Tests/test_pickle.py | 116 | def helper_assert_pickled_font_images( |
| LOW | Tests/test_nanoarrow.py | 267 | def test_image_nested_metadata(mode: str, metadata: list[str]) -> None: |
| LOW | Tests/test_imagefont.py | 459 | def test_free_type_font_get_name(font: ImageFont.FreeTypeFont) -> None: |
| LOW | Tests/test_imagefont.py | 463 | def test_free_type_font_get_metrics(font: ImageFont.FreeTypeFont) -> None: |
| 331 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setup.py | 2 | # ------------------------------ |
| MEDIUM | setup.py | 5 | # ------------------------------ |
| MEDIUM | setup.py | 8 | # ------------------------------ |
| MEDIUM | Tests/test_image_getcolors.py | 39 | # -------------------------------------------------------------------- |
| MEDIUM | .github/workflows/wheels.yml | 5 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/wheels.yml | 6 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/wheels.yml | 7 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/wheels.yml | 8 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/wheels.yml | 9 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | src/PIL/MpoImagePlugin.py | 191 | # --------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 158 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 375 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 746 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 1101 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 1540 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PngImagePlugin.py | 1566 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PcxImagePlugin.py | 135 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PcxImagePlugin.py | 223 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageFile.py | 82 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageFile.py | 110 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageFile.py | 641 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 213 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 241 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 299 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/MpegImagePlugin.py | 77 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GribStubImagePlugin.py | 31 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GribStubImagePlugin.py | 66 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PixarImagePlugin.py | 68 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/MicImagePlugin.py | 25 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/MicImagePlugin.py | 99 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImtImagePlugin.py | 23 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImtImagePlugin.py | 98 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GifImagePlugin.py | 69 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GifImagePlugin.py | 509 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GifImagePlugin.py | 1139 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/GifImagePlugin.py | 1210 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PalmImagePlugin.py | 103 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PalmImagePlugin.py | 111 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PalmImagePlugin.py | 211 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/FpxImagePlugin.py | 41 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/FpxImagePlugin.py | 253 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/BufrStubImagePlugin.py | 31 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/BufrStubImagePlugin.py | 66 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/PSDraw.py | 146 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/Hdf5StubImagePlugin.py | 31 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/Hdf5StubImagePlugin.py | 66 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/IcoImagePlugin.py | 52 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/IcoImagePlugin.py | 389 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/EpsImagePlugin.py | 35 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/EpsImagePlugin.py | 420 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/EpsImagePlugin.py | 472 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/TgaImagePlugin.py | 31 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/TgaImagePlugin.py | 181 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/TgaImagePlugin.py | 271 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/Jpeg2KImagePlugin.py | 378 | # ------------------------------------------------------------ |
| MEDIUM | src/PIL/Jpeg2KImagePlugin.py | 449 | # ------------------------------------------------------------ |
| MEDIUM | src/PIL/PcfFontFile.py | 34 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageTk.py | 39 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageTk.py | 69 | # -------------------------------------------------------------------- |
| MEDIUM | src/PIL/ImageTk.py | 191 | # -------------------------------------------------------------------- |
| 47 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 1 | |
| LOW | selftest.py | 3 | |
| LOW | setup.py | 9 | |
| LOW | checks/check_libtiff_segfault.py | 1 | |
| LOW | checks/check_large_memory.py | 1 | |
| LOW | checks/check_j2k_overflow.py | 1 | |
| LOW | checks/check_j2k_leaks.py | 1 | |
| LOW | checks/32bit_segfault_check.py | 1 | |
| LOW | checks/check_release_notes.py | 1 | |
| LOW | checks/check_jpeg_leaks.py | 1 | |
| LOW | checks/check_large_memory_numpy.py | 1 | |
| LOW | checks/check_wheel.py | 1 | |
| LOW | checks/check_fli_oob.py | 1 | |
| LOW | checks/check_png_dos.py | 1 | |
| LOW | checks/check_j2k_dos.py | 3 | |
| LOW | checks/check_fli_overflow.py | 1 | |
| LOW | checks/check_jp2_overflow.py | 13 | |
| LOW | checks/check_imaging_leaks.py | 1 | |
| LOW | checks/check_icns_dos.py | 3 | |
| LOW | winbuild/build_prepare.py | 1 | |
| LOW | Tests/test_imagecms.py | 1 | |
| LOW | Tests/test_fontfile.py | 1 | |
| LOW | Tests/test_image_fromqimage.py | 1 | |
| LOW | Tests/test_qt_image_toqimage.py | 1 | |
| LOW | Tests/test_pyroma.py | 1 | |
| LOW | Tests/test_pyarrow.py | 1 | |
| LOW | Tests/test_tiff_ifdrational.py | 1 | |
| LOW | Tests/test_image_paste.py | 1 | |
| LOW | Tests/test_file_msp.py | 1 | |
| LOW | Tests/test_image_array.py | 1 | |
| LOW | Tests/test_file_xbm.py | 1 | |
| LOW | Tests/conftest.py | 1 | |
| LOW | Tests/test_font_pcf.py | 1 | |
| LOW | Tests/test_tiff_crashes.py | 13 | |
| LOW | Tests/test_file_psd.py | 1 | |
| LOW | Tests/test_file_dcx.py | 1 | |
| LOW | Tests/test_imagewin.py | 1 | |
| LOW | Tests/test_imageshow.py | 1 | |
| LOW | Tests/test_font_leaks.py | 1 | |
| LOW | Tests/test_qt_image_qapplication.py | 1 | |
| LOW | Tests/test_file_gimppalette.py | 1 | |
| LOW | Tests/test_features.py | 1 | |
| LOW | Tests/test_image_putalpha.py | 1 | |
| LOW | Tests/test_image_draft.py | 1 | |
| LOW | Tests/test_file_xpm.py | 1 | |
| LOW | Tests/test_webp_leaks.py | 1 | |
| LOW | Tests/test_core_resources.py | 1 | |
| LOW | Tests/test_file_pcx.py | 1 | |
| LOW | Tests/test_file_png.py | 1 | |
| LOW | Tests/test_imagegrab.py | 1 | |
| LOW | Tests/test_uploader.py | 1 | |
| LOW | Tests/test_shell_injection.py | 1 | |
| LOW | Tests/test_locale.py | 1 | |
| LOW | Tests/test_file_pcd.py | 1 | |
| LOW | Tests/test_file_bmp.py | 1 | |
| LOW | Tests/test_file_im.py | 1 | |
| LOW | Tests/test_image_rotate.py | 1 | |
| LOW | Tests/test_pickle.py | 1 | |
| LOW | Tests/test_file_cur.py | 1 | |
| LOW | Tests/test_file_blp.py | 1 | |
| 238 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | checks/check_jp2_overflow.py | 1 | # Reproductions/tests for OOB read errors in FliDecode.c |
| LOW | Tests/test_tiff_crashes.py | 1 | # Reproductions/tests for crashes/read errors in TiffDecode.c |
| LOW | Tests/test_image_transform.py | 221 | sz, Image.Transform.EXTENT, (0, 0, w, h), Image.Resampling.NEAREST |
| LOW | Tests/test_file_apng.py | 121 | with Image.open("Tests/images/apng/dispose_op_previous_region.png") as im: |
| LOW | Tests/oss-fuzz/fuzz_font.py | 1 | #!/usr/bin/python3 |
| LOW | Tests/oss-fuzz/build.sh | 1 | #!/bin/bash -eu |
| LOW | Tests/oss-fuzz/fuzz_pillow.py | 1 | # Copyright 2020 Google LLC |
| LOW | Tests/oss-fuzz/build_dictionaries.sh | 1 | #!/bin/bash -eu |
| LOW | docs/conf.py | 1 | # |
| LOW | docs/conf.py | 61 | |
| LOW | docs/conf.py | 81 | # Else, today_fmt is used as the format for a strftime call. |
| LOW | docs/conf.py | 101 | # show_authors = False |
| LOW | docs/conf.py | 141 | |
| LOW | docs/conf.py | 181 | # If true, SmartyPants will be used to convert quotes and dashes to |
| LOW | docs/conf.py | 201 | # If true, links to the reST sources are added to the pages. |
| LOW | src/_imagingft.c | 21 | #define PY_SSIZE_T_CLEAN |
| LOW | src/_imagingft.c | 41 | #undef __FTERRORS_H__ |
| LOW | src/_webp.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/_imagingmath.c | 61 | |
| LOW | src/encode.c | 1061 | /* -------------------------------------------------------------------- */ |
| LOW | src/_imaging.c | 81 | #ifdef __CYGWIN__ |
| LOW | src/libImaging/ImPlatform.h | 21 | #if defined(PIL_NO_INLINE) |
| LOW | src/libImaging/ImPlatform.h | 41 | #else /* not WIN */ |
| LOW | src/libImaging/ImPlatform.h | 61 | #define FLOAT64 double |
| LOW | src/libImaging/ImagingUtils.h | 1 | #ifdef WORDS_BIGENDIAN |
| LOW | src/libImaging/JpegDecode.c | 21 | * See the README file for details on usage and redistribution. |
| LOW | src/libImaging/Pack.c | 61 | out[3] = tmp[4], \ |
| LOW | src/libImaging/Imaging.h | 121 | }; |
| LOW | src/libImaging/Imaging.h | 741 | export_imaging_array(Imaging im, struct ArrowArray *array); |
| LOW | src/libImaging/Imaging.h | 761 | #define MUTEX_UNLOCK(m) PyMutex_Unlock(m) |
| LOW | src/libImaging/JpegEncode.c | 21 | |
| LOW | src/libImaging/Quant.c | 21 | #include "Imaging.h" |
| LOW | src/libImaging/Arrow.h | 1 | #include <stdint.h> |
| LOW | src/libImaging/QuantOctree.c | 1 | /* Copyright (c) 2010 Oliver Tonnhofer <olt@bogosoft.com>, Omniscale |
| LOW | src/PIL/MpoImagePlugin.py | 1 | # |
| LOW | src/PIL/ImageMode.py | 1 | # |
| LOW | src/PIL/PngImagePlugin.py | 1 | # |
| LOW | src/PIL/PngImagePlugin.py | 21 | # 2004-09-20 fl Added PngInfo chunk container |
| LOW | src/PIL/XbmImagePlugin.py | 1 | # |
| LOW | src/PIL/PcxImagePlugin.py | 1 | # |
| LOW | src/PIL/SunImagePlugin.py | 1 | # |
| LOW | src/PIL/SunImagePlugin.py | 41 | # { |
| LOW | src/PIL/SunImagePlugin.py | 101 | if self.mode == "L": |
| LOW | src/PIL/ImageFile.py | 1 | # |
| LOW | src/PIL/SpiderImagePlugin.py | 1 | # |
| LOW | src/PIL/SpiderImagePlugin.py | 21 | ## |
| LOW | src/PIL/TarIO.py | 1 | # |
| LOW | src/PIL/MpegImagePlugin.py | 1 | # |
| LOW | src/PIL/BdfFontFile.py | 1 | # |
| LOW | src/PIL/ImageStat.py | 1 | # |
| LOW | src/PIL/PixarImagePlugin.py | 1 | # |
| LOW | src/PIL/GimpPaletteFile.py | 1 | # |
| LOW | src/PIL/ImageColor.py | 1 | # |
| LOW | src/PIL/ContainerIO.py | 1 | # |
| LOW | src/PIL/MspImagePlugin.py | 1 | # |
| LOW | src/PIL/MspImagePlugin.py | 81 | # cc-by-attribution -- That page references is taken from the |
| LOW | src/PIL/MspImagePlugin.py | 101 | # Write the RunValue byte RunCount times |
| LOW | src/PIL/MicImagePlugin.py | 1 | # |
| LOW | src/PIL/ImtImagePlugin.py | 1 | # |
| LOW | src/PIL/GifImagePlugin.py | 1 | # |
| 76 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 386 | |
| LOW | setup.py | 497 | |
| LOW | winbuild/build_prepare.py | 471 | |
| LOW | Tests/test_imagecms.py | 627 | |
| LOW | Tests/test_pyarrow.py | 26 | |
| LOW | Tests/test_features.py | 27 | |
| LOW | Tests/test_features.py | 31 | |
| LOW | Tests/test_file_png.py | 71 | |
| LOW | Tests/test_imagegrab.py | 102 | |
| LOW | Tests/test_nanoarrow.py | 26 | |
| LOW | Tests/test_bmp_reference.py | 19 | |
| LOW | Tests/test_bmp_reference.py | 64 | |
| LOW | Tests/test_arro3.py | 34 | |
| LOW | Tests/test_file_tiff.py | 599 | |
| LOW | Tests/test_file_jpeg2k.py | 526 | |
| LOW | Tests/test_file_libtiff.py | 160 | |
| LOW | Tests/test_file_libtiff.py | 207 | |
| LOW | Tests/test_imageops.py | 409 | |
| LOW | Tests/test_imagedraw.py | 1429 | |
| LOW | docs/example/DdsImagePlugin.py | 117 | |
| LOW | docs/example/DdsImagePlugin.py | 155 | |
| LOW | docs/example/DdsImagePlugin.py | 179 | |
| LOW | .github/compare-dist-sizes.py | 120 | |
| LOW | src/PIL/MpoImagePlugin.py | 41 | |
| LOW | src/PIL/PngImagePlugin.py | 1174 | |
| LOW | src/PIL/PngImagePlugin.py | 1325 | |
| LOW | src/PIL/PngImagePlugin.py | 498 | |
| LOW | src/PIL/PngImagePlugin.py | 628 | |
| LOW | src/PIL/PngImagePlugin.py | 877 | |
| LOW | src/PIL/PngImagePlugin.py | 1024 | |
| LOW | src/PIL/AvifImagePlugin.py | 147 | |
| LOW | src/PIL/PcxImagePlugin.py | 53 | |
| LOW | src/PIL/SunImagePlugin.py | 36 | |
| LOW | src/PIL/ImageFile.py | 672 | |
| LOW | src/PIL/ImageFile.py | 117 | |
| LOW | src/PIL/ImageFile.py | 291 | |
| LOW | src/PIL/ImageFile.py | 531 | |
| LOW | src/PIL/ImageText.py | 25 | |
| LOW | src/PIL/ImageText.py | 175 | |
| LOW | src/PIL/ImageText.py | 327 | |
| LOW | src/PIL/QoiImagePlugin.py | 54 | |
| LOW | src/PIL/QoiImagePlugin.py | 154 | |
| LOW | src/PIL/MspImagePlugin.py | 115 | |
| LOW | src/PIL/ImtImagePlugin.py | 36 | |
| LOW | src/PIL/GifImagePlugin.py | 516 | |
| LOW | src/PIL/GifImagePlugin.py | 545 | |
| LOW | src/PIL/GifImagePlugin.py | 663 | |
| LOW | src/PIL/GifImagePlugin.py | 876 | |
| LOW | src/PIL/GifImagePlugin.py | 929 | |
| LOW | src/PIL/GifImagePlugin.py | 1027 | |
| LOW | src/PIL/GifImagePlugin.py | 175 | |
| LOW | src/PIL/PalmImagePlugin.py | 117 | |
| LOW | src/PIL/ImageQt.py | 132 | |
| LOW | src/PIL/PdfParser.py | 339 | |
| LOW | src/PIL/PdfParser.py | 176 | |
| LOW | src/PIL/PdfParser.py | 987 | |
| LOW | src/PIL/PdfParser.py | 1025 | |
| LOW | src/PIL/ImageCms.py | 230 | |
| LOW | src/PIL/FpxImagePlugin.py | 124 | |
| LOW | src/PIL/_deprecate.py | 8 | |
| 66 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 305 | except Exception: # noqa: PERF203 |
| LOW | setup.py | 470 | except Exception: |
| LOW | setup.py | 493 | except Exception: |
| LOW | setup.py | 613 | except Exception: |
| LOW | setup.py | 753 | except Exception: |
| MEDIUM | setup.py | 463 | def get_macos_sdk_path(self) -> str | None: |
| MEDIUM | setup.py | 484 | def get_ios_sdk_path(self) -> str: |
| LOW | checks/check_fli_oob.py | 67 | except Exception as msg: |
| LOW | checks/check_jp2_overflow.py | 23 | except Exception as msg: |
| LOW | Tests/conftest.py | 23 | except Exception as e: |
| LOW | Tests/conftest.py | 60 | except Exception: |
| LOW | Tests/test_bmp_reference.py | 30 | except Exception: # as msg: |
| LOW | Tests/test_bmp_reference.py | 59 | except Exception: # noqa: PERF203 |
| LOW | Tests/test_bmp_reference.py | 109 | except Exception as msg: # noqa: PERF203 |
| LOW | Tests/test_image_access.py | 276 | except Exception: |
| LOW | Tests/helper.py | 69 | except Exception: |
| LOW | Tests/helper.py | 95 | except Exception: |
| LOW | Tests/helper.py | 133 | except Exception as e: |
| LOW | Tests/helper.py | 138 | except Exception: |
| LOW | Tests/oss-fuzz/fuzz_font.py | 30 | except Exception: |
| LOW | Tests/oss-fuzz/fuzz_pillow.py | 28 | except Exception: |
| LOW | src/PIL/PngImagePlugin.py | 464 | except Exception: |
| LOW | src/PIL/ImageFile.py | 208 | except Exception as msg: |
| LOW | src/PIL/SpiderImagePlugin.py | 232 | except Exception: |
| LOW | src/PIL/EpsImagePlugin.py | 247 | except Exception: |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 300 | except Exception: |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 307 | except Exception: |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 424 | except Exception: |
| LOW | src/PIL/ImageTk.py | 142 | except Exception: |
| LOW | src/PIL/ImageTk.py | 230 | except Exception: |
| MEDIUM | src/PIL/ImageTk.py | 134 | def __del__(self) -> None: |
| MEDIUM | src/PIL/ImageTk.py | 222 | def __del__(self) -> None: |
| LOW | src/PIL/TiffImagePlugin.py | 1763 | except Exception: |
| LOW | src/PIL/Image.py | 793 | except Exception: |
| LOW | src/PIL/Image.py | 1204 | except Exception: |
| LOW | src/PIL/Image.py | 2711 | except Exception: |
| LOW | src/PIL/Image.py | 4092 | except Exception: |
| LOW | src/PIL/JpegImagePlugin.py | 91 | except Exception: |
| LOW | src/PIL/JpegImagePlugin.py | 563 | except Exception as e: |
| LOW | src/PIL/ImageFont.py | 110 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Tests/test_imagemorph.py | 165 | # Create a corner detector pattern |
| MEDIUM | Tests/test_000_sanity.py | 10 | # Create an image and do stuff with it. |
| MEDIUM | Tests/test_file_xvthumb.py | 18 | # Create a Hopper image with a similar XV palette |
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its |
| MEDIUM | src/PIL/ImageOps.py | 218 | # Create the low-end values |
| MEDIUM | src/PIL/ImageOps.py | 224 | # Create the mapping (2-color) |
| MEDIUM | src/PIL/ImageOps.py | 239 | # Create the mapping (3-color) |
| MEDIUM | src/PIL/ImageOps.py | 261 | # Create the high-end values |
| MEDIUM | src/PIL/TiffTags.py | 7 | # This module provides clear-text names for various well-known |
| MEDIUM | src/PIL/TiffTags.py | 16 | # This module provides constants and clear-text names for various |
| MEDIUM | src/PIL/TiffImagePlugin.py | 520 | """This class represents a TIFF tag directory. To speed things up, we |
| MEDIUM | src/PIL/TiffImagePlugin.py | 1061 | """This class represents the **legacy** interface to a TIFF tag directory. |
| MEDIUM | src/PIL/SgiImagePlugin.py | 147 | # Define the file as SGI File Format |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Tests/test_file_png.py | 691 | # Set MAXBLOCK to the length of the actual data |
| LOW | Tests/test_decompression_bomb.py | 34 | # Set limit to trigger warning on the test file |
| LOW | Tests/test_decompression_bomb.py | 43 | # Set limit to trigger exception on the test file |
| LOW | Tests/test_decompression_bomb.py | 67 | # Set limit to trigger exception on the test file |
| LOW | src/PIL/WebPImagePlugin.py | 105 | # Check if an error occurred |
| LOW | src/PIL/TiffImagePlugin.py | 71 | # Set these to true to force use of libtiff for reading or writing. |
| LOW | src/PIL/Image.py | 2015 | # Return result |
| LOW | src/PIL/Image.py | 2945 | # Return result |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/PIL/PngImagePlugin.py | 1002 | self.png.push(cid, pos, length) |
| HIGH | src/PIL/PngImagePlugin.py | 1043 | self.png.push(cid, pos, length) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/PIL/PcxImagePlugin.py | 18 | # 2002-06-09 fl Made 2-bit and 4-bit support a bit more robust |
| MEDIUM | src/PIL/ImageFile.py | 22 | # 2004-02-25 fl Made incremental parser more robust |
| MEDIUM | src/PIL/Image.py | 2268 | # We're going to leverage the convert mechanism to use the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/PIL/Image.py | 3294 | Creates an image memory referencing pixel data in a byte buffer. This function is similar to :py:func:`~PIL.Im |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/PIL/TiffImagePlugin.py | 13 | # progressive decoding, make sure to use TIFF files where the tag |