Skip to content

value_and_holder: uninit members #1660

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 1 commit into from
Jun 11, 2019

Conversation

ax3l
Copy link
Collaborator

@ax3l ax3l commented Jan 7, 2019

fix some uninitialized members in value_and_holder for some of the constructors.

value_and_holder has two constructors that leave the class half-init and has several public methods that operate unchecked on those member vars (deref, etc.)

Found with coverity in a downstream project.

fix some uninitialized members in `value_and_holder` for
some of the constructurs.

Found with coverity in a downstream project.
@ax3l ax3l force-pushed the fix-valueHolderCastUninitMem branch from 8566dbf to 877fa66 Compare January 7, 2019 19:45
@wjakob
Copy link
Member

wjakob commented Jun 11, 2019

Fine.

@wjakob wjakob merged commit 6788ab8 into pybind:master Jun 11, 2019
@ax3l ax3l deleted the fix-valueHolderCastUninitMem branch June 11, 2019 21:28
wjakob pushed a commit that referenced this pull request Jun 11, 2019
fix some uninitialized members in `value_and_holder` for
some of the constructurs.

Found with coverity in a downstream project.
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.

2 participants