Skip to content

Fix several memory issues#4

Merged
barsnick merged 4 commits intovalkyrie-qt5-qt6from
fix/memory-scope-review
Apr 15, 2026
Merged

Fix several memory issues#4
barsnick merged 4 commits intovalkyrie-qt5-qt6from
fix/memory-scope-review

Conversation

@barsnick
Copy link
Copy Markdown
Owner

No description provided.

vkPoptGetNextOpt() now accepts a buffer length and writes option arguments
with snprintf() so long option values cannot overflow the caller's arg_val
buffer.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
@barsnick barsnick force-pushed the fix/memory-scope-review branch from d83b630 to 8f09894 Compare April 15, 2026 11:56
Hold the toLatin1() result in a QByteArray so the popen() command pointer
remains valid for the duration of the call, avoiding a dangling pointer to a
temporary.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Also avoid useless assignment after freeing.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
@barsnick barsnick force-pushed the fix/memory-scope-review branch from 8f09894 to be21326 Compare April 15, 2026 12:07
@barsnick barsnick merged commit 02af4b5 into valkyrie-qt5-qt6 Apr 15, 2026
12 checks passed
@barsnick barsnick deleted the fix/memory-scope-review branch April 15, 2026 14:52
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