- edited description
Surface.subsurface segfaults on a dead surface
Issue #2
resolved
The Surface.subsurface method fails to check if the surface is alive. The result is a Pygame parachute.
{{{
import pygame s = pygame.Surface.new(pygame.Surface) ss = s.subsurface((0, 0, 0, 0)) Fatal Python error: (pygame parachute) Segmentation Fault Aborted }}}
Comments (7)
-
-
- changed status to open
- changed version to Development
-
- changed status to new
The problem: in surf_subsurface(), surf->format is assigned to format before surf is checked if NULL.
-
- changed status to resolved
Fixed 38cdc3d7302a .
Case closed.
-
- changed version to 1.9.2 (under development)
-
- changed version to 1.9.2 (pre-release)
-
- changed version to 1.9.2
- Log in to comment