Python Imaging Library (fork)
This report summarizes scanner evidence for python-pillow/Pillow, a Python project with 13,887 GitHub stars. SynthScan examined 137,210 lines of code across 498 source files, recording 1255 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 13.0 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 731 finding(s).
Are imports declared and package/API names verified? 301 finding(s).
Are wrappers, guards, and repeated structures necessary? 661 finding(s).
Which changes need focused human review? 1255 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1255 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 171 | def _find_library_dirs_ldconfig() -> list[str]: | CODE |
| LOW | checks/check_large_memory.py | 54 | def test_size_greater_than_int() -> None: | CODE |
| LOW | Tests/test_imagecms.py | 239 | def test_unsupported_color_space() -> None: | CODE |
| LOW | Tests/test_imagecms.py | 249 | def test_invalid_color_temperature() -> None: | CODE |
| LOW | Tests/test_imagecms.py | 353 | def test_extended_information() -> None: | CODE |
| LOW | Tests/test_imagecms.py | 358 | def assert_truncated_tuple_equal( | CODE |
| LOW | Tests/test_imagecms.py | 540 | def test_transform_typesafety() -> None: | CODE |
| LOW | Tests/test_imagecms.py | 548 | def assert_aux_channel_preserved( | CODE |
| LOW⚡ | Tests/test_imagecms.py | 605 | def test_preserve_auxiliary_channels_rgba() -> None: | CODE |
| LOW⚡ | Tests/test_imagecms.py | 611 | def test_preserve_auxiliary_channels_rgba_in_place() -> None: | CODE |
| LOW⚡ | Tests/test_imagecms.py | 617 | def test_preserve_auxiliary_channels_rgbx() -> None: | CODE |
| LOW⚡ | Tests/test_imagecms.py | 623 | def test_preserve_auxiliary_channels_rgbx_in_place() -> None: | CODE |
| LOW⚡ | Tests/test_imagecms.py | 629 | def test_auxiliary_channels_isolated() -> None: | CODE |
| LOW | Tests/test_image_paste.py | 376 | def test_incorrect_abbreviated_form(self) -> None: | CODE |
| LOW | Tests/test_file_msp.py | 87 | def test_cannot_save_wrong_mode(tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_image_array.py | 96 | def test_fromarray_strides_without_tobytes() -> None: | CODE |
| LOW | Tests/test_file_xbm.py | 58 | def test_open_filename_with_underscore() -> None: | STRING |
| LOW | Tests/test_file_psd.py | 114 | def test_seek_back_to_initial_frame() -> None: | CODE |
| LOW | Tests/test_file_psd.py | 142 | def test_open_after_exclusive_load() -> None: | CODE |
| LOW | Tests/test_file_psd.py | 154 | def test_negative_top_left_layer() -> None: | CODE |
| LOW | Tests/test_file_psd.py | 208 | def test_combined_larger_than_size() -> None: | CODE |
| LOW | Tests/test_file_psd.py | 263 | def test_bounds_crash_overflow() -> None: | CODE |
| LOW | Tests/test_file_dcx.py | 140 | def test_seek_decompression_bomb() -> None: | CODE |
| LOW | Tests/test_imagewin.py | 122 | def test_dib_frombytes_tobytes_roundtrip(self) -> None: | CODE |
| LOW | Tests/test_imageshow.py | 62 | def test_show_without_viewers(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | Tests/test_features.py | 54 | def test_libjpeg_turbo_version() -> None: | CODE |
| LOW | Tests/test_features.py | 61 | def test_libimagequant_version() -> None: | CODE |
| LOW | Tests/test_features.py | 77 | def test_check_warns_on_nonexistent() -> None: | CODE |
| LOW | Tests/test_file_xpm.py | 92 | def test_not_enough_image_data() -> None: | STRING |
| LOW | Tests/test_core_resources.py | 87 | def test_set_block_size_stats(self) -> None: | CODE |
| LOW | Tests/test_core_resources.py | 120 | def test_set_blocks_max_stats(self) -> None: | CODE |
| LOW | Tests/test_file_pcx.py | 141 | def test_break_in_count_overflow( | CODE |
| LOW | Tests/test_file_png.py | 247 | def test_load_transparent_rgb(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 261 | def test_save_p_transparent_palette(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_file_png.py | 284 | def test_save_p_single_transparency(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_file_png.py | 309 | def test_save_p_transparent_black(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_file_png.py | 327 | def test_save_grayscale_transparency(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_file_png.py | 361 | def test_save_rgb_single_transparency(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_file_png.py | 396 | def test_verify_ignores_crc_error(self, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | Tests/test_file_png.py | 410 | def test_verify_not_ignores_crc_error_in_required_chunk( | CODE |
| LOW | Tests/test_file_png.py | 578 | def test_roundtrip_icc_profile(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 585 | def test_roundtrip_no_icc_profile(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 601 | def test_repr_png_error_returns_none(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 638 | def test_roundtrip_private_chunk(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 656 | def test_textual_chunks_after_idat(self, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | Tests/test_file_png.py | 687 | def test_unknown_compression_method(self) -> None: | CODE |
| LOW | Tests/test_file_png.py | 720 | def test_truncated_trns_chunk( | CODE |
| LOW | Tests/test_file_png.py | 732 | def test_truncated_trns_chunk_in_file( | CODE |
| LOW | Tests/test_file_png.py | 760 | def test_specify_bits_fewer_palette_entries(self, tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_imagegrab.py | 65 | def test_grab_invalid_xdisplay(self) -> None: | CODE |
| LOW | Tests/test_imagegrab.py | 172 | def test_grabclipboard_wl_clipboard(self, ext: str) -> None: | CODE |
| LOW | Tests/test_imagegrab.py | 188 | def test_grabclipboard_wl_clipboard_errors(self, arg: str) -> None: | CODE |
| LOW | Tests/test_shell_injection.py | 25 | def assert_save_filename_check( | CODE |
| LOW | Tests/test_file_bmp.py | 44 | def test_fallback_if_mmap_errors() -> None: | CODE |
| LOW | Tests/test_file_bmp.py | 296 | def test_unsupported_bmp_bitfields_layout() -> None: | CODE |
| LOW | Tests/test_file_im.py | 125 | def test_save_unsupported_mode(tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_image_rotate.py | 143 | def test_alpha_rotate_no_fill() -> None: | CODE |
| LOW | Tests/test_image_rotate.py | 151 | def test_alpha_rotate_with_fill() -> None: | CODE |
| LOW | Tests/test_pickle.py | 90 | def test_pickle_la_mode_with_palette(tmp_path: Path) -> None: | CODE |
| LOW | Tests/test_pickle.py | 119 | def helper_assert_pickled_font_images( | CODE |
| 372 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | selftest.py | 14 | except AttributeError: | CODE |
| HIGH | setup.py | 306 | except Exception: | CODE |
| HIGH | setup.py | 402 | except TypeError: | CODE |
| HIGH | Tests/test_imagecms.py | 34 | except ImportError: | CODE |
| HIGH | Tests/conftest.py | 60 | except Exception: | CODE |
| HIGH | Tests/test_font_pcf.py | 40 | except OSError: | CODE |
| HIGH | Tests/test_tiff_crashes.py | 53 | except OSError: | CODE |
| HIGH | Tests/test_imageshow.py | 104 | except NotImplementedError: | CODE |
| HIGH | Tests/test_bmp_reference.py | 28 | except Exception: # as msg: | CODE |
| HIGH | Tests/test_image_access.py | 328 | except FileNotFoundError: | CODE |
| HIGH | Tests/test_font_pcf_charsets.py | 62 | except OSError: | CODE |
| HIGH | Tests/helper.py | 102 | except Exception: | CODE |
| HIGH | Tests/helper.py | 145 | except Exception: | CODE |
| HIGH | Tests/test_file_jpeg2k.py | 548 | except OSError: | CODE |
| HIGH | Tests/benchmarks.py | 77 | except LookupError: | CODE |
| HIGH | Tests/benchmarks.py | 83 | except LookupError: | CODE |
| HIGH | Tests/test_file_gif.py | 505 | except EOFError: | CODE |
| HIGH | Tests/test_file_gif.py | 529 | except EOFError: | CODE |
| HIGH | Tests/test_file_gif.py | 585 | except EOFError: | CODE |
| HIGH | Tests/test_file_gif.py | 872 | except EOFError: | CODE |
| HIGH | Tests/test_file_gif.py | 884 | except EOFError: | CODE |
| HIGH | Tests/oss-fuzz/test_fuzzers.py | 40 | except ( | CODE |
| HIGH | Tests/oss-fuzz/test_fuzzers.py | 66 | except (Image.DecompressionBombError, Image.DecompressionBombWarning, OSError): | CODE |
| HIGH | Tests/oss-fuzz/fuzz_font.py | 30 | except Exception: | CODE |
| HIGH | Tests/oss-fuzz/fuzz_pillow.py | 28 | except Exception: | CODE |
| HIGH | src/PIL/PngImagePlugin.py | 473 | except KeyError: | CODE |
| HIGH | src/PIL/PngImagePlugin.py | 1031 | except EOFError: | CODE |
| HIGH | src/PIL/ImageFile.py | 590 | except OSError: | CODE |
| HIGH | src/PIL/_typing.py | 17 | except ImportError: | CODE |
| HIGH | src/PIL/GifImagePlugin.py | 408 | except AttributeError: | CODE |
| HIGH | src/PIL/GifImagePlugin.py | 731 | except ValueError: | CODE |
| HIGH | src/PIL/ImageFilter.py | 414 | except ImportError: | CODE |
| HIGH | src/PIL/ImageDraw.py | 849 | except (ValueError, IndexError): | CODE |
| HIGH | src/PIL/EpsImagePlugin.py | 178 | except OSError: | CODE |
| HIGH | src/PIL/EpsImagePlugin.py | 257 | except Exception: | CODE |
| HIGH | src/PIL/TgaImagePlugin.py | 163 | except KeyError: | CODE |
| HIGH | src/PIL/PcfFontFile.py | 254 | except UnicodeDecodeError: | CODE |
| HIGH | src/PIL/ImageTk.py | 145 | except Exception: | CODE |
| HIGH | src/PIL/ImageTk.py | 233 | except Exception: | CODE |
| HIGH | src/PIL/ImageShow.py | 360 | except ImportError: | CODE |
| HIGH | src/PIL/TiffImagePlugin.py | 1786 | except Exception: | CODE |
| HIGH | src/PIL/TiffImagePlugin.py | 1944 | except io.UnsupportedOperation: | CODE |
| HIGH | src/PIL/IptcImagePlugin.py | 225 | except (IndexError, KeyError): | CODE |
| HIGH | src/PIL/IptcImagePlugin.py | 205 | except KeyError: | CODE |
| HIGH | src/PIL/ImagePalette.py | 307 | except (SyntaxError, ValueError): | CODE |
| HIGH | src/PIL/IcnsImagePlugin.py | 248 | except KeyError: | CODE |
| HIGH | src/PIL/Image.py | 445 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 451 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 457 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 463 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 469 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 515 | except KeyError: | CODE |
| HIGH | src/PIL/Image.py | 540 | except KeyError: | CODE |
| HIGH | src/PIL/Image.py | 491 | except ImportError: | CODE |
| HIGH | src/PIL/Image.py | 4110 | except Exception: | CODE |
| HIGH | src/PIL/Image.py | 2725 | except PermissionError: | CODE |
| HIGH | src/PIL/Image.py | 4333 | except struct.error: | CODE |
| HIGH | src/PIL/ImImagePlugin.py | 274 | except ValueError: | CODE |
| HIGH | src/PIL/JpegImagePlugin.py | 894 | except (TypeError, IndexError): | CODE |
| HIGH | src/PIL/JpegImagePlugin.py | 102 | except Exception: | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | setup.py | 2 | # ------------------------------ | COMMENT |
| MEDIUM⚡ | setup.py | 5 | # ------------------------------ | COMMENT |
| MEDIUM⚡ | setup.py | 8 | # ------------------------------ | COMMENT |
| MEDIUM | Tests/test_image_getcolors.py | 39 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/wheels.yml | 5 | # ┌───────────── minute (0 - 59) | COMMENT |
| MEDIUM⚡ | .github/workflows/wheels.yml | 6 | # │ ┌───────────── hour (0 - 23) | COMMENT |
| MEDIUM⚡ | .github/workflows/wheels.yml | 7 | # │ │ ┌───────────── day of the month (1 - 31) | COMMENT |
| MEDIUM⚡ | .github/workflows/wheels.yml | 8 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | COMMENT |
| MEDIUM⚡ | .github/workflows/wheels.yml | 9 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | COMMENT |
| MEDIUM | src/PIL/MpoImagePlugin.py | 199 | # --------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 167 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 384 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 772 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 1124 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 1576 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PngImagePlugin.py | 1602 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PcxImagePlugin.py | 140 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PcxImagePlugin.py | 228 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageFile.py | 86 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageFile.py | 114 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageFile.py | 647 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 210 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 238 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/SpiderImagePlugin.py | 296 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/MpegImagePlugin.py | 82 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GribStubImagePlugin.py | 31 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GribStubImagePlugin.py | 64 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PixarImagePlugin.py | 70 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/MicImagePlugin.py | 27 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/MicImagePlugin.py | 103 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImtImagePlugin.py | 23 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImtImagePlugin.py | 98 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GifImagePlugin.py | 73 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GifImagePlugin.py | 509 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GifImagePlugin.py | 1074 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/GifImagePlugin.py | 1145 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PalmImagePlugin.py | 106 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PalmImagePlugin.py | 114 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PalmImagePlugin.py | 214 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/FpxImagePlugin.py | 43 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/FpxImagePlugin.py | 259 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/BufrStubImagePlugin.py | 31 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/BufrStubImagePlugin.py | 64 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/PSDraw.py | 157 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/Hdf5StubImagePlugin.py | 31 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/Hdf5StubImagePlugin.py | 64 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/IcoImagePlugin.py | 58 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/IcoImagePlugin.py | 411 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/EpsImagePlugin.py | 39 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/EpsImagePlugin.py | 433 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/EpsImagePlugin.py | 485 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/TgaImagePlugin.py | 36 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/TgaImagePlugin.py | 186 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/TgaImagePlugin.py | 280 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/Jpeg2KImagePlugin.py | 390 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | src/PIL/Jpeg2KImagePlugin.py | 461 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | src/PIL/PcfFontFile.py | 36 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageTk.py | 42 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageTk.py | 72 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/PIL/ImageTk.py | 194 | # -------------------------------------------------------------------- | COMMENT |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 1 | CODE | |
| LOW | selftest.py | 3 | CODE | |
| LOW | setup.py | 9 | CODE | |
| LOW | checks/check_libtiff_segfault.py | 1 | CODE | |
| LOW | checks/check_large_memory.py | 1 | CODE | |
| LOW | checks/check_j2k_overflow.py | 1 | CODE | |
| LOW | checks/check_j2k_leaks.py | 1 | CODE | |
| LOW | checks/32bit_segfault_check.py | 1 | CODE | |
| LOW | checks/check_release_notes.py | 1 | CODE | |
| LOW | checks/check_jpeg_leaks.py | 1 | CODE | |
| LOW | checks/check_large_memory_numpy.py | 1 | CODE | |
| LOW | checks/check_wheel.py | 1 | CODE | |
| LOW | checks/check_fli_oob.py | 1 | CODE | |
| LOW | checks/check_png_dos.py | 1 | CODE | |
| LOW | checks/check_j2k_dos.py | 3 | CODE | |
| LOW | checks/check_fli_overflow.py | 1 | CODE | |
| LOW | checks/check_jp2_overflow.py | 13 | CODE | |
| LOW | checks/check_imaging_leaks.py | 1 | CODE | |
| LOW | checks/check_icns_dos.py | 3 | CODE | |
| LOW | winbuild/build_prepare.py | 1 | CODE | |
| LOW | Tests/test_imagecms.py | 1 | CODE | |
| LOW | Tests/test_imagecms.py | 9 | CODE | |
| LOW | Tests/test_fontfile.py | 1 | CODE | |
| LOW | Tests/test_image_fromqimage.py | 1 | CODE | |
| LOW | Tests/test_qt_image_toqimage.py | 1 | CODE | |
| LOW | Tests/test_pyarrow.py | 1 | CODE | |
| LOW | Tests/test_tiff_ifdrational.py | 1 | CODE | |
| LOW | Tests/test_image_paste.py | 1 | CODE | |
| LOW | Tests/test_file_msp.py | 1 | CODE | |
| LOW | Tests/test_image_array.py | 1 | CODE | |
| LOW | Tests/test_file_xbm.py | 1 | CODE | |
| LOW | Tests/conftest.py | 1 | CODE | |
| LOW | Tests/test_font_pcf.py | 1 | CODE | |
| LOW | Tests/test_tiff_crashes.py | 13 | CODE | |
| LOW | Tests/test_file_psd.py | 1 | CODE | |
| LOW | Tests/test_file_dcx.py | 1 | CODE | |
| LOW | Tests/test_imagewin.py | 1 | CODE | |
| LOW | Tests/test_imageshow.py | 1 | CODE | |
| LOW | Tests/test_font_leaks.py | 1 | CODE | |
| LOW | Tests/test_qt_image_qapplication.py | 1 | CODE | |
| LOW | Tests/test_file_gimppalette.py | 1 | CODE | |
| LOW | Tests/test_features.py | 1 | CODE | |
| LOW | Tests/test_image_putalpha.py | 1 | CODE | |
| LOW | Tests/test_image_draft.py | 1 | CODE | |
| LOW | Tests/test_file_xpm.py | 1 | CODE | |
| LOW | Tests/test_webp_leaks.py | 1 | CODE | |
| LOW | Tests/test_core_resources.py | 1 | CODE | |
| LOW | Tests/test_file_pcx.py | 1 | CODE | |
| LOW | Tests/test_file_png.py | 1 | CODE | |
| LOW | Tests/test_imagegrab.py | 1 | CODE | |
| LOW | Tests/test_uploader.py | 1 | CODE | |
| LOW | Tests/test_shell_injection.py | 1 | CODE | |
| LOW | Tests/test_locale.py | 1 | CODE | |
| LOW | Tests/test_file_pcd.py | 1 | CODE | |
| LOW | Tests/test_file_bmp.py | 1 | CODE | |
| LOW | Tests/test_file_im.py | 1 | CODE | |
| LOW | Tests/test_image_rotate.py | 1 | CODE | |
| LOW | Tests/test_pickle.py | 1 | CODE | |
| LOW | Tests/test_file_cur.py | 1 | CODE | |
| LOW | Tests/test_file_blp.py | 1 | CODE | |
| 239 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | checks/check_jp2_overflow.py | 1 | # Reproductions/tests for OOB read errors in FliDecode.c | COMMENT |
| LOW | Tests/test_tiff_crashes.py | 1 | # Reproductions/tests for crashes/read errors in TiffDecode.c | COMMENT |
| LOW | Tests/test_image_transform.py | 221 | ) | COMMENT |
| LOW | Tests/test_file_jpeg.py | 901 | with Image.open("Tests/images/truncated_exif_dpi.jpg") as im: | COMMENT |
| LOW | Tests/oss-fuzz/fuzz_font.py | 1 | #!/usr/bin/python3 | COMMENT |
| LOW | Tests/oss-fuzz/build.sh | 1 | #!/bin/bash -eu | COMMENT |
| LOW | Tests/oss-fuzz/fuzz_pillow.py | 1 | # Copyright 2020 Google LLC | COMMENT |
| LOW | Tests/oss-fuzz/build_dictionaries.sh | 1 | #!/bin/bash -eu | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 61 | COMMENT | |
| LOW | docs/conf.py | 81 | # Else, today_fmt is used as the format for a strftime call. | COMMENT |
| LOW | docs/conf.py | 101 | # show_authors = False | COMMENT |
| LOW | docs/conf.py | 141 | html_theme_options = { | COMMENT |
| LOW | docs/conf.py | 181 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, | COMMENT |
| LOW | docs/conf.py | 201 | COMMENT | |
| LOW | docs/conf.py | 221 | COMMENT | |
| LOW | src/_imagingft.c | 21 | #define PY_SSIZE_T_CLEAN | COMMENT |
| LOW | src/_imagingft.c | 41 | #undef __FTERRORS_H__ | COMMENT |
| LOW | src/_webp.c | 1 | #define PY_SSIZE_T_CLEAN | COMMENT |
| LOW | src/_imagingmath.c | 61 | COMMENT | |
| LOW | src/_imaging.c | 81 | #define JCONFIG_INCLUDED | COMMENT |
| LOW | src/libImaging/ImPlatform.h | 21 | #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */ | COMMENT |
| LOW | src/libImaging/ImPlatform.h | 41 | #define INT8 int8_t | COMMENT |
| LOW | src/libImaging/ImagingUtils.h | 1 | #ifdef WORDS_BIGENDIAN | COMMENT |
| LOW | src/libImaging/JpegDecode.c | 21 | * See the README file for details on usage and redistribution. | COMMENT |
| LOW | src/libImaging/Pack.c | 61 | out[3] = tmp[4], \ | COMMENT |
| LOW | src/libImaging/Imaging.h | 121 | }; | COMMENT |
| LOW | src/libImaging/Imaging.h | 281 | #define IMAGING_TRANSFORM_AFFINE 0 | COMMENT |
| LOW | src/libImaging/Imaging.h | 741 | export_imaging_array(Imaging im, struct ArrowArray *array); | COMMENT |
| LOW | src/libImaging/Imaging.h | 761 | #define MUTEX_UNLOCK(m) PyMutex_Unlock(m) | COMMENT |
| LOW | src/libImaging/JpegEncode.c | 21 | COMMENT | |
| LOW | src/libImaging/Arrow.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | src/libImaging/Arrow.h | 21 | // This product includes software developed at | COMMENT |
| LOW | src/libImaging/QuantOctree.c | 1 | /* Copyright (c) 2010 Oliver Tonnhofer <olt@bogosoft.com>, Omniscale | COMMENT |
| LOW | src/PIL/MpoImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/ImageMode.py | 1 | # | COMMENT |
| LOW | src/PIL/PngImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/PngImagePlugin.py | 21 | # 2004-09-20 fl Added PngInfo chunk container | COMMENT |
| LOW | src/PIL/XbmImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/PcxImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/SunImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/SunImagePlugin.py | 41 | COMMENT | |
| LOW | src/PIL/SunImagePlugin.py | 101 | offset = offset + palette_length | COMMENT |
| LOW | src/PIL/ImageFile.py | 1 | # | COMMENT |
| LOW | src/PIL/SpiderImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/SpiderImagePlugin.py | 21 | ## | COMMENT |
| LOW | src/PIL/TarIO.py | 1 | # | COMMENT |
| LOW | src/PIL/MpegImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/BdfFontFile.py | 1 | # | COMMENT |
| LOW | src/PIL/ImageStat.py | 1 | # | COMMENT |
| LOW | src/PIL/PixarImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/GimpPaletteFile.py | 1 | # | COMMENT |
| LOW | src/PIL/ImageColor.py | 1 | # | COMMENT |
| LOW | src/PIL/ContainerIO.py | 1 | # | COMMENT |
| LOW | src/PIL/MspImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/MspImagePlugin.py | 81 | class MspDecoder(ImageFile.PyDecoder): | COMMENT |
| LOW | src/PIL/MspImagePlugin.py | 101 | # If the RunType value is zero | COMMENT |
| LOW | src/PIL/MicImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/ImtImagePlugin.py | 1 | # | COMMENT |
| LOW | src/PIL/GifImagePlugin.py | 1 | # | COMMENT |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 388 | CODE | |
| LOW | setup.py | 499 | CODE | |
| LOW | winbuild/build_prepare.py | 476 | CODE | |
| LOW | Tests/test_imagecms.py | 629 | CODE | |
| LOW | Tests/test_pyarrow.py | 26 | CODE | |
| LOW | Tests/test_features.py | 27 | CODE | |
| LOW | Tests/test_features.py | 31 | CODE | |
| LOW | Tests/test_file_png.py | 73 | CODE | |
| LOW | Tests/test_imagegrab.py | 111 | CODE | |
| LOW | Tests/test_nanoarrow.py | 26 | CODE | |
| LOW | Tests/test_bmp_reference.py | 19 | CODE | |
| LOW | Tests/test_bmp_reference.py | 62 | CODE | |
| LOW | Tests/test_file_wmf.py | 121 | CODE | |
| LOW | Tests/test_arro3.py | 34 | CODE | |
| LOW | Tests/test_file_tiff.py | 606 | CODE | |
| LOW | Tests/test_file_jpeg2k.py | 553 | CODE | |
| LOW | Tests/test_file_libtiff.py | 163 | CODE | |
| LOW | Tests/test_file_libtiff.py | 210 | CODE | |
| LOW | Tests/test_imageops.py | 423 | CODE | |
| LOW | Tests/test_imagedraw.py | 1444 | CODE | |
| LOW | docs/example/DdsImagePlugin.py | 117 | CODE | |
| LOW | docs/example/DdsImagePlugin.py | 155 | CODE | |
| LOW | docs/example/DdsImagePlugin.py | 179 | CODE | |
| LOW | .github/compare-dist-sizes.py | 120 | CODE | |
| LOW | src/PIL/MpoImagePlugin.py | 47 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 1193 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 1349 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 507 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 654 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 903 | CODE | |
| LOW | src/PIL/PngImagePlugin.py | 1047 | CODE | |
| LOW | src/PIL/AvifImagePlugin.py | 151 | CODE | |
| LOW | src/PIL/XbmImagePlugin.py | 55 | CODE | |
| LOW | src/PIL/PcxImagePlugin.py | 58 | CODE | |
| LOW | src/PIL/SunImagePlugin.py | 38 | CODE | |
| LOW | src/PIL/ImageFile.py | 678 | CODE | |
| LOW | src/PIL/ImageFile.py | 296 | CODE | |
| LOW | src/PIL/ImageFile.py | 537 | CODE | |
| LOW | src/PIL/ImageText.py | 28 | CODE | |
| LOW | src/PIL/ImageText.py | 178 | CODE | |
| LOW | src/PIL/ImageText.py | 328 | CODE | |
| LOW | src/PIL/QoiImagePlugin.py | 56 | CODE | |
| LOW | src/PIL/QoiImagePlugin.py | 167 | CODE | |
| LOW | src/PIL/MspImagePlugin.py | 118 | CODE | |
| LOW | src/PIL/ImtImagePlugin.py | 36 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 516 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 545 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 663 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 865 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 963 | CODE | |
| LOW | src/PIL/GifImagePlugin.py | 179 | CODE | |
| LOW | src/PIL/PalmImagePlugin.py | 120 | CODE | |
| LOW | src/PIL/ImageQt.py | 136 | CODE | |
| LOW | src/PIL/PdfParser.py | 347 | CODE | |
| LOW | src/PIL/PdfParser.py | 183 | CODE | |
| LOW | src/PIL/PdfParser.py | 999 | CODE | |
| LOW | src/PIL/PdfParser.py | 1037 | CODE | |
| LOW | src/PIL/ImageCms.py | 229 | CODE | |
| LOW | src/PIL/FpxImagePlugin.py | 126 | CODE | |
| LOW | src/PIL/_deprecate.py | 10 | CODE | |
| 68 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 306 | except Exception: | CODE |
| LOW | setup.py | 472 | except Exception: | CODE |
| LOW | setup.py | 495 | except Exception: | CODE |
| LOW | setup.py | 620 | except Exception: | CODE |
| LOW | setup.py | 760 | except Exception: | CODE |
| MEDIUM | setup.py | 465 | def get_macos_sdk_path(self) -> str | None: | CODE |
| MEDIUM | setup.py | 486 | def get_ios_sdk_path(self) -> str: | CODE |
| LOW | checks/check_fli_oob.py | 67 | except Exception as msg: | CODE |
| LOW | checks/check_jp2_overflow.py | 23 | except Exception as msg: | CODE |
| LOW | Tests/conftest.py | 23 | except Exception as e: | CODE |
| LOW | Tests/conftest.py | 60 | except Exception: | CODE |
| LOW | Tests/test_bmp_reference.py | 28 | except Exception: # as msg: | CODE |
| LOW | Tests/test_bmp_reference.py | 57 | except Exception: | CODE |
| LOW | Tests/test_bmp_reference.py | 107 | except Exception as msg: | CODE |
| LOW | Tests/test_image_access.py | 284 | except Exception: | CODE |
| LOW | Tests/helper.py | 76 | except Exception: | CODE |
| LOW | Tests/helper.py | 102 | except Exception: | CODE |
| LOW⚡ | Tests/helper.py | 140 | except Exception as e: | CODE |
| LOW⚡ | Tests/helper.py | 145 | except Exception: | CODE |
| LOW | Tests/benchmarks.py | 101 | except Exception as e: | CODE |
| LOW | Tests/oss-fuzz/fuzz_font.py | 30 | except Exception: | CODE |
| LOW | Tests/oss-fuzz/fuzz_pillow.py | 28 | except Exception: | CODE |
| LOW | src/PIL/ImageFile.py | 213 | except Exception as msg: | CODE |
| LOW | src/PIL/SpiderImagePlugin.py | 229 | except Exception: | CODE |
| LOW | src/PIL/EpsImagePlugin.py | 257 | except Exception: | CODE |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 309 | except Exception: | CODE |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 316 | except Exception: | CODE |
| LOW | src/PIL/Jpeg2KImagePlugin.py | 436 | except Exception: | CODE |
| LOW | src/PIL/ImageTk.py | 145 | except Exception: | CODE |
| LOW | src/PIL/ImageTk.py | 233 | except Exception: | CODE |
| MEDIUM | src/PIL/ImageTk.py | 137 | def __del__(self) -> None: | CODE |
| MEDIUM | src/PIL/ImageTk.py | 225 | def __del__(self) -> None: | CODE |
| LOW | src/PIL/TiffImagePlugin.py | 1786 | except Exception: | CODE |
| LOW | src/PIL/Image.py | 791 | except Exception: | CODE |
| LOW | src/PIL/Image.py | 1207 | except Exception: | CODE |
| LOW | src/PIL/Image.py | 2719 | except Exception: | CODE |
| LOW | src/PIL/Image.py | 4110 | except Exception: | CODE |
| LOW | src/PIL/JpegImagePlugin.py | 102 | except Exception: | CODE |
| LOW | src/PIL/JpegImagePlugin.py | 581 | except Exception as e: | CODE |
| LOW | src/PIL/ImageFont.py | 135 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tests/test_imagemorph.py | 179 | # Create a corner detector pattern | COMMENT |
| MEDIUM | Tests/test_000_sanity.py | 10 | # Create an image and do stuff with it. | COMMENT |
| MEDIUM | Tests/test_file_xvthumb.py | 18 | # Create a Hopper image with a similar XV palette | COMMENT |
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | src/PIL/ImageOps.py | 228 | # Create the low-end values | COMMENT |
| MEDIUM | src/PIL/ImageOps.py | 234 | # Create the mapping (2-color) | COMMENT |
| MEDIUM | src/PIL/ImageOps.py | 249 | # Create the mapping (3-color) | COMMENT |
| MEDIUM | src/PIL/ImageOps.py | 271 | # Create the high-end values | COMMENT |
| MEDIUM | src/PIL/TiffTags.py | 7 | # This module provides clear-text names for various well-known | COMMENT |
| MEDIUM | src/PIL/TiffTags.py | 16 | # This module provides constants and clear-text names for various | COMMENT |
| MEDIUM | src/PIL/TiffImagePlugin.py | 530 | """This class represents a TIFF tag directory. To speed things up, we | STRING |
| MEDIUM | src/PIL/TiffImagePlugin.py | 1073 | """This class represents the **legacy** interface to a TIFF tag directory. | STRING |
| MEDIUM | src/PIL/SgiImagePlugin.py | 152 | # Define the file as SGI File Format | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tests/test_file_png.py | 694 | # Set MAXBLOCK to the length of the actual data | COMMENT |
| LOW | Tests/test_decompression_bomb.py | 34 | # Set limit to trigger warning on the test file | COMMENT |
| LOW | Tests/test_decompression_bomb.py | 43 | # Set limit to trigger exception on the test file | COMMENT |
| LOW⚡ | Tests/test_decompression_bomb.py | 68 | # Set limit to trigger exception on the test file | COMMENT |
| LOW | src/PIL/WebPImagePlugin.py | 109 | # Check if an error occurred | COMMENT |
| LOW⚡ | src/PIL/TiffImagePlugin.py | 80 | # Set these to true to force use of libtiff for reading or writing. | COMMENT |
| LOW | src/PIL/ImagePalette.py | 149 | # Set it to black, so that the new color can be written afterwards. | COMMENT |
| LOW | src/PIL/Image.py | 2025 | # Return result | STRING |
| LOW | src/PIL/Image.py | 2960 | # Return result | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tests/helper.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/PIL/PngImagePlugin.py | 70 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/PIL/PcxImagePlugin.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/PIL/ImageFile.py | 50 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/PIL/_typing.py | 46 | __all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"] | CODE |
| LOW | src/PIL/ImageMorph.py | 311 | def set_lut(self, lut: bytearray | None) -> None: | CODE |
| LOW⚡ | src/PIL/TiffImagePlugin.py | 78 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/PIL/TiffImagePlugin.py | 686 | def _setitem(self, tag: int, value: Any, legacy_api: bool) -> None: | CODE |
| LOW | src/PIL/TiffImagePlugin.py | 1438 | def _setup(self) -> None: | CODE |
| LOW | src/PIL/ImageFont.py | 713 | def set_variation_by_name(self, name: str | bytes) -> None: | CODE |
| LOW | src/PIL/ImageFont.py | 743 | def set_variation_by_axes(self, axes: list[float]) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/PIL/PngImagePlugin.py | 1025 | self.png.push(cid, pos, length) | CODE |
| HIGH | src/PIL/PngImagePlugin.py | 1066 | self.png.push(cid, pos, length) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/PIL/PcxImagePlugin.py | 18 | # 2002-06-09 fl Made 2-bit and 4-bit support a bit more robust | COMMENT |
| MEDIUM | src/PIL/ImageFile.py | 22 | # 2004-02-25 fl Made incremental parser more robust | COMMENT |
| MEDIUM | src/PIL/Image.py | 2279 | # We're going to leverage the convert mechanism to use the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/PIL/ImageDraw.py | 531 | CODE | |
| LOW | src/PIL/ImageDraw.py | 650 | CODE | |
| LOW | src/PIL/ImageDraw.py | 711 | CODE | |
| LOW | src/PIL/ImageDraw.py | 739 | CODE | |
| LOW | src/PIL/ImageFont.py | 475 | CODE | |
| LOW | src/PIL/ImageFont.py | 566 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/PIL/Image.py | 3316 | Creates an image memory referencing pixel data in a byte buffer. This function is similar to :py:func:`~PIL.Im | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/PIL/TiffImagePlugin.py | 13 | # progressive decoding, make sure to use TIFF files where the tag | COMMENT |