OSS-FUZZ: Fix discovered issues

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2026-03-04 16:18:15 +00:00
1 parent bb639096ab
commit 30875ab127
2 files changed
+7 -8

No files matched your search

+2 -1
View File
@@ -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;
}