Skip to content

Fix gcc use-after-free false warning#131

Merged
cajun-rat merged 2 commits into
masterfrom
fix/use-after-free-fp
Apr 2, 2025
Merged

Fix gcc use-after-free false warning#131
cajun-rat merged 2 commits into
masterfrom
fix/use-after-free-fp

Conversation

@cajun-rat
Copy link
Copy Markdown
Collaborator

gcc 12 reports a use-after-free warning for this code. We believe it is a FP. More details are in #130

gcc 12 reports a use-after-free warning for this code. We believe it is
a FP. More details are in #130
@cajun-rat
Copy link
Copy Markdown
Collaborator Author

Fails due to actions/toolkit#1890

@cajun-rat
Copy link
Copy Markdown
Collaborator Author

Fails due to actions/toolkit#1890

Fixed in commit #32e1c9540 (in this PR)

@cajun-rat
Copy link
Copy Markdown
Collaborator Author

cc @leonardoheld

@cajun-rat cajun-rat mentioned this pull request Apr 1, 2025
@cajun-rat cajun-rat requested review from mike-sul and rborn-tx April 2, 2025 06:58
Copy link
Copy Markdown
Collaborator

@rborn-tx rborn-tx left a comment

Choose a reason for hiding this comment

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

LGTM

The issue definitely looks like a false-positive and the fact it is solved by simply making the add_ref/release functions non-inline reinforces that hypothesis.

@cajun-rat cajun-rat merged commit b323701 into master Apr 2, 2025
@cajun-rat cajun-rat deleted the fix/use-after-free-fp branch April 2, 2025 19:49
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