[PATCH] WINGs: fix memory leaks and potential buffer over-read in wfont
1 view
Skip to first unread message
david.m...@gmail.com
unread,
Feb 15, 2026, 6:05:26 PM (9 days ago) Feb 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Window Maker Development
This patch is fixing memory leaks when pango structures are used but not freed. Also according to commit 4f050ebab997782461d7c6b65dea7b535916329f, previous_text string in WMWidthOfString can be not NULL terminated, the same construct is used in WMDrawString and WMDrawImageString functions, so to be safe better to also check for the length of the string. --- WINGs/wfont.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)