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

contrib/hbwin: Fixed dangling pointer access in WIN_DRAWBITMAP(). #335

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

tuffnatty
Copy link
Member

@tuffnatty tuffnatty commented Nov 8, 2023

2023-11-11 21:41 UTC+0100 Phil Krylov (phil a t krylov.eu)

  • contrib/hbwin/win_bmp.c
    ! Fixed dangling pointer access (introduced in commit 64dba82) in
    WIN_DRAWBITMAP().

--
@vszakats, you may be interested in this. I saw your comments about some GPF around this place.

@tuffnatty tuffnatty added the bug label Nov 8, 2023
@vszakats
Copy link
Member

vszakats commented Nov 8, 2023

it seems sensible to fix this scope indeed. Though there remain other issues, and BMP is difficult (if possible at all) to handle securely. FWIW the commit 64dba82 adding this scoped variable also left an ancient FIXME comment in the wrong place inside this function. It's supposed to come before the HB_SIZE nSize = hb_parclen( 2 ); line.

  * contrib/hbwin/win_bmp.c
    ! Fixed dangling pointer access (introduced in commit 64dba82) in
      WIN_DRAWBITMAP().
@tuffnatty tuffnatty force-pushed the fix-dangling-pointer-access-in-hbwin branch from 912310f to 65d8018 Compare November 11, 2023 20:45
@tuffnatty tuffnatty merged commit 9e989d3 into master Nov 11, 2023
13 of 44 checks passed
@tuffnatty tuffnatty deleted the fix-dangling-pointer-access-in-hbwin branch November 11, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants