mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 01:27:09 +03:00
RIOT: Implement RIOT's coding standards
This commit is contained in:
1 parent
783b5317ca
commit
86b778167a
16 files changed
+107
-151
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user