Method Surface.fill can segfault is passed an out-of-bounds boundary rectange

Issue #93 resolved
Lenard Lindstrom created an issue

The //Surface.fill// method can segfault when doing a //BLEND_RGB_ADD// fill if the optional boundary rectangle goes outside of the surface.

This addresses Pygame mailing list messages:


The cause is that the custom fill methods in surface_blit.c do no boundary checks.

Comments (3)

  1. Log in to comment