Skip to content

fix(ci): Do not fail build on false-positive stringop-overflow warning - #549

Merged
TheJokr merged 1 commit into
masterfrom
lblocher/fix-ubuntu26.04-ci
Nov 4, 2026
Merged

TheJokr merged 1 commit into
masterfrom
lblocher/fix-ubuntu26.04-ci

Conversation

@TheJokr

@TheJokr TheJokr commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The code in question is left_encode in
boringssl/crypto/fipsmodule/keccak/keccak.cc.inc. Both me and the clanker audited it and found no issue, while stringop-overflow has a long list of false positives reported against it:

We could probably fix the warning by rewriting the function, but IMO the overhead of carrying a patch is not justified for a false-positive GCC lint. By setting -Wno-error=stringop-overflow the warning will still be reported but not fail the CI build anymore.

See #548 for CI runs that fail because of this.

The code in question is `left_encode` in
`boringssl/crypto/fipsmodule/keccak/keccak.cc.inc`. Both me and the
clanker audited it and found no issue, while `stringop-overflow` has a
long list of false positives reported against it:

- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92955>
- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335>
- <https://issues.chromium.org/issues/42290598>
- <https://bugs.launchpad.net/ubuntu/+source/gcc-12/+bug/2013140>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2432481>

We could probably fix the warning by rewriting the function, but IMO
the overhead of carrying a patch is not justified for a false-positive
GCC lint. By setting `-Wno-error=stringop-overflow` the warning will
still be reported but not fail the CI build anymore.
@TheJokr TheJokr self-assigned this Nov 4, 2026

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Approved — The change to CI warning flags is small and well explained. No issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code Quality: ✅ LGTM

The CI change only stops the stringop-overflow warning from failing the build. The warning is still reported. No issues found.


Reviewed commit: 7f9cefeb

@TheJokr

TheJokr commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Warning is still reported without failing the build: https://github.com/cloudflare/boring/actions/runs/41839521063/job/126607069365?pr=549#step:7:387

@TheJokr
TheJokr merged commit e6dd46b into master Nov 4, 2026
29 checks passed
@TheJokr
TheJokr deleted the lblocher/fix-ubuntu26.04-ci branch November 4, 2026 15:17
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