Skip to content
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 segfault when checking for required elements in joint #610

Merged
merged 3 commits into from
Jun 29, 2021
Merged

Conversation

aaronchongth
Copy link
Collaborator

Signed-off-by: Aaron Chong aaronchongth@gmail.com

🦟 Bug fix

Fixes #590

Summary

  • Switched to using xml->GetLineNum() instead of elemXml->GetLineNum()
  • Added test for this particular error.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Jun 29, 2021
@aaronchongth aaronchongth requested a review from azeey June 29, 2021 05:29
@aaronchongth aaronchongth changed the title Used xml instead of elemXml, added test for this particular case Fix segfault when checking for required elements in joint Jun 29, 2021
src/parser_TEST.cc Outdated Show resolved Hide resolved
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@azeey azeey merged commit a9c928d into sdf11 Jun 29, 2021
@azeey azeey deleted the aaron/fix_590 branch June 29, 2021 22:10
chapulina added a commit that referenced this pull request Jun 30, 2021
* Add triage, remove ticket templates (#608)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Fix ABI break on sdf11 (#606)

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* 🎈 11.2.1 (#609)

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>

Co-authored-by: Steve Peters <scpeters@openrobotics.org>

* Fix segfault when checking for required elements in joint (#610)

* Used xml instead of elemXml, added test for this particular case

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Steve Peters <scpeters@openrobotics.org>
Co-authored-by: Aaron Chong <aaronchongth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault when parsing incorrect SDF.
2 participants