Skip to content

Disable static array-bounds check so suppress false positives#346

Merged
wipawel merged 1 commit into
KernelTestFramework:mainlinefrom
jcjgraf:fix_array-bonds
Dec 3, 2024
Merged

Disable static array-bounds check so suppress false positives#346
wipawel merged 1 commit into
KernelTestFramework:mainlinefrom
jcjgraf:fix_array-bonds

Conversation

@jcjgraf
Copy link
Copy Markdown
Contributor

@jcjgraf jcjgraf commented Dec 3, 2024

Newer versions of GCC warn about memory accesses at non-zero offsets from null pointers. As we use this intentionally at different places in our code, these warnings result in many false positives. Temporarily, disabling the flag using pragmas is not viable as it is caused by macros that provide an expression. So we could not just fix the macro, but wherever it is used.

Tracked by: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578

@jcjgraf jcjgraf requested a review from a team as a code owner December 3, 2024 08:42
@jcjgraf jcjgraf marked this pull request as draft December 3, 2024 08:45
Newer versions of GCC warn about memory accesses at non-zero offsets
from null pointers. As we use this intentionally at different places
in our code, these warnings result in many false positives. Temporarily,
disabling the flag using pragmas is not viable as it is caused by
macros that provide an expression. So we could not just fix the macro,
but wherever it is used.

Tracked by: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578

Signed-off-by: Jean-Claude Graf <mail@jeanclaudegraf.ch>
@jcjgraf jcjgraf marked this pull request as ready for review December 3, 2024 08:53
@wipawel wipawel merged commit f2382b2 into KernelTestFramework:mainline Dec 3, 2024
@jcjgraf jcjgraf deleted the fix_array-bonds branch December 3, 2024 09:50
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