Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dtzSiFive
Copy link
Contributor

Don't return success if there's a value, that value may be failure. Fixes crash.

Emit diagnostic if no value found, to ensure something is produced.

Found via fuzzing.

@dtzSiFive dtzSiFive requested a review from darthscsi as a code owner September 3, 2024 16:19
@dtzSiFive dtzSiFive force-pushed the fix/inout-type-parse-crash branch from edaf5f1 to 07e355d Compare September 3, 2024 16:26
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

Nice find!

@dtzSiFive dtzSiFive force-pushed the fix/inout-type-parse-crash branch from 07e355d to 56ba50a Compare September 4, 2024 18:08
Don't return success if there's a value, that value
may be failure.  Fixes crash.

Emit diagnostic if no value found, to ensure something is produced.

Found via fuzzing.
@dtzSiFive dtzSiFive force-pushed the fix/inout-type-parse-crash branch from 56ba50a to 2500962 Compare September 4, 2024 18:14
@dtzSiFive dtzSiFive merged commit 169cfac into llvm:main Sep 4, 2024
@dtzSiFive dtzSiFive deleted the fix/inout-type-parse-crash branch September 4, 2024 18:29
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