Skip to content

[6.40] Fix DrawImage in TGX11 and TGWin32 - #23154

Open
linev wants to merge 2 commits into
root-project:v6-40-00-patchesfrom
linev:fix_freetype_640
Open

[6.40] Fix DrawImage in TGX11 and TGWin32#23154
linev wants to merge 2 commits into
root-project:v6-40-00-patchesfrom
linev:fix_freetype_640

Conversation

@linev

@linev linev commented Aug 26, 2026

Copy link
Copy Markdown
Member

Loops allow to access memory outside of allocated array range

Two similar methods on TGX11 and TGWin32
In master this code will be completely changed by #23128 - where problem was recognized

linev added 2 commits August 26, 2026 13:24
If image larger than 50000 dots, loop may went over allocated memory
and may overwrite it.
Prevent loop going over allocated memory
Only relevant for large images - over 50000 pixels
@linev linev added this to the 6.40.04 milestone Aug 26, 2026
@linev
linev requested a review from bellenot August 26, 2026 11:31
@linev linev self-assigned this Aug 26, 2026
@linev
linev requested a review from couet as a code owner August 26, 2026 11:31
@dpiparo dpiparo modified the milestones: 6.40.04, 6.40.06 Aug 26, 2026
@github-actions

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 10h 8m 13s ⏱️
 3 863 tests  3 860 ✅ 0 💤 3 ❌
76 301 runs  76 297 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit 279c78c.

@linev linev changed the title Fix DrawImage in TGX11 and TGWin32 [6.40] Fix DrawImage in TGX11 and TGWin32 Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants