Skip to content

Fix for possible OOB writes when running the specificquery client - #338

Merged
mksanger merged 2 commits into
wtsi-npg:develfrom
kjsanger:bug/specificquery-oob
May 18, 2026
Merged

Fix for possible OOB writes when running the specificquery client#338
mksanger merged 2 commits into
wtsi-npg:develfrom
kjsanger:bug/specificquery-oob

Conversation

@kjsanger

Copy link
Copy Markdown
Member

Add a bounds check for the maximum permitted number of query parameters.

Add a test for exceeding the maximum.

kjsanger added 2 commits May 14, 2026 14:04
Add a bounds check for the maximum permitted number of query parameters.

Add a test for exceeding the maximum.

Add some initialisation for variables potentially uninitialised.

Add free() on some error paths to avoid memory leaks.

Removed some unused variables and checks.
Add a bounds check for the maximum permitted number of query parameters.

Add a test for exceeding the maximum.
@kjsanger kjsanger added the bug label May 14, 2026
Comment thread src/query.c
@mksanger
mksanger merged commit 50823ae into wtsi-npg:devel May 18, 2026
3 checks passed
@kjsanger
kjsanger deleted the bug/specificquery-oob branch May 18, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants