Skip to content
Snippets Groups Projects
Commit ca9f6f09 authored by anonymouspage's avatar anonymouspage
Browse files

checkStamp: prevent array size promotion/truncation

Calls to checkStamp are passing literals that are not 20 bytes
in size. This causes a "promotion" of the size in the context
of checkStamp. We can quiet these warnings by just marking the
parameter as a pointer.

Note: a safer approach would be to pass a pointer and length.

This was detected by gcc 11.2.0:

ooii.c:1018:9: error: 'checkStamp' accessing 20 bytes in a region of size 11 [-Werror=stringop-overflow=]
...
parent bb233b89
No related branches found
No related tags found
No related merge requests found
Pipeline #3293 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment