RIOT: Implement RIOT's coding standards

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2026-04-20 21:28:45 +01:00
1 parent 783b5317ca
commit 86b778167a
16 files changed
+107 -151

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ asn1_tag_c(const uint8_t **ptr, size_t *plen, int *constructed, int *cls) {
tag = (tag << 7) + (byte & 0x7F);
(*plen)--;
(*ptr)++;
if (*plen == 0 || tag > (INT_MAX >> 7))
if (*plen == 0 || (uint32_t)tag > (INT_MAX >> 7))
return COAP_ASN1_FAIL;
byte = (**ptr);
}