Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zero sized mask connected_component(s) segmentation fault #879

Merged
merged 1 commit into from Mar 7, 2019

Conversation

Projects
None yet
2 participants
@charlesej
Copy link
Contributor

charlesej commented Mar 4, 2019

This update fixes the segmentation fault caused by calling pygame.mask.Mask.connected_component and pygame.mask.Mask.connected_components on a zero sized mask.

Overview of changes:

  • Changed connected_component(s) to work correctly with zero sized masks
  • Updated several comments
  • Removed @unittest.skip decorators from the now passing tests

System details:

  • os: windows 10 (64bit)
  • python: 3.7.2 (64bit) and 2.7.10 (64bit)
  • pygame: 1.9.5.dev0 (SDL: 1.2.15) at 67a94cc

Resolves #870.

Fix zero sized mask connected_component(s) segmentation fault
- Changed connected_component(s) to work correctly with zero sized masks
- Updated several comments
- Removed @unittest.skip decorators from the now passing tests
@illume

illume approved these changes Mar 7, 2019

Copy link
Member

illume left a comment

Nice one. The documentation is easier to read this way :)

@illume illume merged commit 6aba8c8 into pygame:master Mar 7, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@charlesej charlesej deleted the charlesej:fix-zero-mask-cc-segfault branch Mar 7, 2019

@dlon dlon referenced this pull request Mar 23, 2019

Closed

1.9.5 release notes. #561

4 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.