OSS-FUZZ: Fix discovered issues

This commit is contained in:
Jon Shallow committed 2026-03-25 08:53:41 +00:00
1 parent b7847c4dbb
commit a2c67ec8fb
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}