Skip to content

Fix : Prevent returning stack address in xdrawglyphfontspecs - #15

Merged
michael105 merged 1 commit into
michael105:master_testfrom
T1anjiu:fix/p2-1-stack-address-return
Aug 31, 2026
Merged

michael105 merged 1 commit into
michael105:master_testfrom
T1anjiu:fix/p2-1-stack-address-return

Conversation

@T1anjiu

@T1anjiu T1anjiu commented Jul 29, 2026

Copy link
Copy Markdown
  • Changed revfg, revbg, truefg, truebg from local to static variables
  • Prevents undefined behavior when caller dereferences returned pointer
  • Eliminates compiler warning: [-Wreturn-local-addr]
  • Tested: compiles cleanly without warnings

- Changed revfg, revbg, truefg, truebg from local to static variables
- Prevents undefined behavior when caller dereferences returned pointer
- Eliminates compiler warning: [-Wreturn-local-addr]
- Tested: compiles cleanly without warnings
@michael105
michael105 changed the base branch from master to master_test August 31, 2026 02:05
@michael105

Copy link
Copy Markdown
Owner

Thanks, nice findings, added them to the copy of master named 'master_test' for now.
Going to merge those branches later.

@michael105
michael105 merged commit 69c2067 into michael105:master_test Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants