sys/crypto: add ACCESS() attribute#22371
Open
maribu wants to merge 2 commits into
Open
Conversation
e46d696 to
6ce7725
Compare
crasbe
reviewed
Jun 10, 2026
9807fb3 to
e586845
Compare
mguetschow
reviewed
Jun 11, 2026
bb3a25f to
891900c
Compare
- annotate functions using the `ACCESS()` macro with the `access` attribute so that GCC can emit proper `-Wstringop-overflow` warnings - some drive-by doxygen markup fixes - conversion of the license/copyright boiler plate to SPDX format Co-authored-by: crasbe <crasbe@gmail.com> Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
This fixes:
```
sys/net/application_layer/nanocoap/nanocoap.c:823:22: error: variable 'tkl_ext' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
823 | memcpy(buf, &tkl_ext, tkl_ext_len);
| ^~~~~~~
```
891900c to
38be0a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
ACCESS()macro with theaccessattribute so that GCC can emit proper-Wstringop-overflowwarningsTesting procedure
The CI will do this
Issues/PRs references
#22368
Declaration of AI-Tools / LLMs usage:
Same as in #22368