code: def test_crop_crash():
      # Image.crop crashes prepatch with an access violation
      # apparently a use after free on Windows, see
      # https://github.com/python-pillow/Pillow/issues/1077
  
      test_img = "Tests/images/bmp/g/pal8-0.bmp"
      extents = (1, 1, 10, 10)
      # works prepatch
      with Image.open(test_img) as img:
          img2 = img.crop(extents)
      img2.load()
  
      # fail prepatch
      with Image.open(test_img) as img:
          img = img.crop(extents)
      img.load()
  
file_path: pillow-simd/Tests/test_image_crop.py
imports: import pytest
  from PIL import Image
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 5 for calling a global function with example usage: test_crop_crash() without return types