-
Notifications
You must be signed in to change notification settings - Fork 852
Fix potential segfault #9308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix potential segfault #9308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But as this is essential, I think we should get a second review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1442bb3
to
f3d37cc
Compare
f3d37cc
to
ddcc27b
Compare
Rebased, de-conflicted, and another jenkins here: https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/7301/ |
…ture/dump-db-properties * 'devel' of https://github.com/arangodb/arangodb: Splicing gather cleanup (#10479) Feature/changelog for subquery splicing (#10396) Fix potential segfault (#9308) don't smile away exception fixing issue #10470 (#10491) add generated front end files in order to allow collection creation Added precondition to ensure that server is still as seen before. (#10468) Actually use the given format to execute a query (#10484) Fix SubqueryStartExecutor (#10488) add tests for inventory (#10464) fix truncate operation in synchronous replication (#10492)
Scope & Purpose
Check whether
name
is empty when resolving collection name before we access it.While we're here, use
isdigit
instead of check whether character is between0
and9
.This might relate to the crash seen in #9302 (comment) but is hard to verify.
Related Information
(Please reference tickets / specification etc )
Testing & Verification
I do not know whether there is a simple way to test these functions, in particular how an empty collection name can get through.