mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
OSS-FUZZ: Fix discovered issues
This commit is contained in:
1 parent
b7847c4dbb
commit
a2c67ec8fb
1 file changed
+2
-1
@@ -106,7 +106,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