8000 Fix potential segfault by markuspf · Pull Request #9308 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 2 commits into from
Nov 21, 2019
Merged

Fix potential segfault #9308

merged 2 commits into from
Nov 21, 2019

Conversation

markuspf
Copy link
Contributor

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 between 0 and 9.

This might relate to the crash seen in #9302 (comment) but is hard to verify.

  • Bug-Fix for devel-branch (i.e. no need for backports?)
  • Bug-Fix for a released version (did you remember to port this to all relevant release branches?)
  • Strictly new functionality (i.e. a new feature / new option, no need for porting)
  • The behavior in this PR can be (and was) manually tested (support / qa / customers can test it)
  • The behaviour change can only be verified via automatic tests

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.

@markuspf markuspf changed the title Bug fix/potential segfault fix Fix potential segfault Jun 21, 2019
@markuspf
Copy link
Contributor Author

Copy link
Member
@goedderz goedderz left a 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.

Copy link
Member
@mchacki mchacki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@markuspf markuspf force-pushed the bug-fix/potential-segfault-fix branch from 1442bb3 to f3d37cc Compare July 16, 2019 10:06
@markuspf
Copy link
Contributor Author

@markuspf markuspf force-pushed the bug-fix/potential-segfault-fix branch from f3d37cc to ddcc27b Compare November 20, 2019 16:50
@markuspf
Copy link
Contributor Author

Rebased, de-conflicted, and another jenkins here: https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/7301/

@markuspf
Copy link
Contributor Author

@mchacki mchacki merged commit e11e81e into devel Nov 21, 2019
@mchacki mchacki deleted the bug-fix/potential-segfault-fix branch November 21, 2019 11:33
ObiWahn added a commit that referenced this pull request Nov 21, 2019
…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)
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.

3 participants
0