Skip to content

Utilize C99 flexible array members to allow for FORTIFY/ASAN#4944

Open
satur9nine wants to merge 1 commit into
bytecodealliance:mainfrom
satur9nine:c99-fam
Open

Utilize C99 flexible array members to allow for FORTIFY/ASAN#4944
satur9nine wants to merge 1 commit into
bytecodealliance:mainfrom
satur9nine:c99-fam

Conversation

@satur9nine
Copy link
Copy Markdown

When building the code today with:

-fsanitize=bounds,bounds-strict,vla-bound 
-fsanitize-trap=bounds,bounds-strict,vla-bound 

WAMR crashes in various places when trying to use arrays of length one as if they are flexible array members. This change enables use of real C99+ flexible array members when the compiler supports it.

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.

1 participant