Skip to content

Restrict ImageWin Dib paste box to bitmap - #10040

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:dib_paste
Open

radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:dib_paste

Conversation

@radarhere

@radarhere radarhere commented Sep 22, 2026

Copy link
Copy Markdown
Member

Similar to #9815

Restricts the box co-ordinates in ImageWin.Dib.paste() to the area of the bitmap image

  • left box co-ordinate cannot be negative
  • right box co-ordinate outside bitmap image
  • upper box co-ordinate cannot be negative
  • lower box co-ordinate outside bitmap image

@akx akx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants