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

tools/gcc-plugins: don't crash on array parameters #17104

Merged

Conversation

eqvinox
Copy link
Contributor

@eqvinox eqvinox commented Oct 15, 2024

Need to have arrays as a stop condition in this type normalization function, like pointers and function pointers. Actual arrays as argument types are extremely rare to see because C has this array-decay-to-pointer thing, but it can happen.


Fixes the ICE/GCC crash in #12346

Need to have arrays as a stop condition in this type normalization
function, like pointers and function pointers.  Actual arrays as
argument types are extremely rare to see because C has this
array-decay-to-pointer thing, but it can happen.

Signed-off-by: David Lamparter <[email protected]>
Copy link
Contributor

@mjstapp mjstapp left a comment

Choose a reason for hiding this comment

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

Looks like there's a block of indentation that needs to be fixed?

tools/gcc-plugins/frr-format.c Show resolved Hide resolved
@donaldsharp
Copy link
Member

our formatter code doesn't apply to this code since it's gcc style

@donaldsharp donaldsharp merged commit 24296c6 into FRRouting:master Oct 15, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants