mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
OSS-FUZZ: Fix discovered issues
This commit is contained in:
1 parent
bb639096ab
commit
30875ab127
2 files changed
+7
-8
No files matched your search
@@ -109,7 +109,8 @@ oscore_cbor_put_bytes(uint8_t **buffer,
|
||||
assert(*buf_size >= bytes_len);
|
||||
(*buf_size) -= bytes_len;
|
||||
*pt = (*pt | 0x40);
|
||||
memcpy(*buffer, bytes, bytes_len);
|
||||
if (bytes_len)
|
||||
memcpy(*buffer, bytes, bytes_len);
|
||||
(*buffer) += bytes_len;
|
||||
return nb + bytes_len;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user