Skip to content

Fix : Prevent returning stack address in xdrawglyphfontspecs - #15

Open
T1anjiu wants to merge 1 commit into
michael105:masterfrom
T1anjiu:fix/p2-1-stack-address-return
Open

Fix : Prevent returning stack address in xdrawglyphfontspecs#15
T1anjiu wants to merge 1 commit into
michael105:masterfrom
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
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.

1 participant