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 segv with PyTable.C #17396

Merged
merged 3 commits into from
Mar 3, 2022
Merged

Fix segv with PyTable.C #17396

merged 3 commits into from
Mar 3, 2022

Conversation

biagas
Copy link
Contributor

@biagas biagas commented Mar 3, 2022

Description

Resolves #17381
Added check for size of results vector before referencing elements.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Other

How Has This Been Tested?

I ran the flatten.py query test on Windows and the cli didn't crash.

Checklist:

  • I have followed the style guidelines of this project.~~
  • I have performed a self-review of my own code.~~
    - [ ] I have commented my code where applicable.
    - [ ] I have updated the release notes.
    - [ ] I have made corresponding changes to the documentation.
    - [ ] I have added debugging support to my changes.
    - [ ] I have added tests that prove my fix is effective or that my feature works.
    - [ ] I have confirmed new and existing unit tests pass locally with my changes.
    - [ ] I have added new baselines for any new tests to the repo.
    - [ ] I have NOT made any changes to protocol or public interfaces in an RC branch.
  • I have assigned reviewers (see VisIt's PR procedures for more information).~~

biagas added 2 commits March 3, 2022 10:42
Added check for size of results vector before referencing elements.
@biagas biagas requested a review from cyrush March 3, 2022 18:46
Copy link
Member

@cyrush cyrush left a comment

Choose a reason for hiding this comment

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

This looks like good protection, but maybe these are debug statements that we should remove? @Laganellac what are you thoughts?

@biagas
Copy link
Contributor Author

biagas commented Mar 3, 2022

@cyrush, I just entered ticket #17397 to address the std::cout messaging

@biagas biagas merged commit aa8414f into develop Mar 3, 2022
@biagas biagas deleted the bugfix/biagas/fix_PyTable_segv branch March 3, 2022 22:40
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.

PyTable.C dereferencing elements of empty vector, crashing CLI
2 participants