bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) by gpshead · Pull Request #21013 · python/cpython · GitHub
Skip to content

bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) - #21013

Merged
miss-islington merged 2 commits into
python:masterfrom
gpshead:coverity_pathconfig
Jun 22, 2020
Merged

miss-islington merged 2 commits into
python:masterfrom
gpshead:coverity_pathconfig

Conversation

@gpshead

@gpshead gpshead commented Jun 20, 2020

Copy link
Copy Markdown
Member

Reported by Coverity. (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.

https://bugs.python.org/issue41056

Automerge-Triggered-By: @tiran

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)
@gpshead
gpshead requested a review from tiran June 21, 2020 19:54
@gpshead gpshead changed the title bpo-41056: Fix Coverity issues reported in pathconfig. bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) Jun 21, 2020
@miss-islington
miss-islington merged commit 81328f3 into python:master Jun 22, 2020
@miss-islington

Copy link
Copy Markdown
Contributor

@bedevere-bot

Copy link
Copy Markdown

GH-21039 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 22, 2020
pythonGH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f3)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
@bedevere-bot

Copy link
Copy Markdown

GH-21041 is a backport of this pull request to the 3.8 branch.

@miss-islington

Copy link
Copy Markdown
Contributor

@miss-islington miss-islington self-assigned this Jun 22, 2020
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 22, 2020
pythonGH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f3)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
miss-islington added a commit that referenced this pull request Jun 22, 2020
GH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f3)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
miss-islington added a commit that referenced this pull request Jun 22, 2020
GH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f3)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
fasih pushed a commit to fasih/cpython that referenced this pull request Jun 29, 2020
pythonGH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants