We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d33de commit eccea31Copy full SHA for eccea31
1 file changed
include/zenoh-pico/protocol/iobuf.h
@@ -82,6 +82,8 @@ static inline void _z_iosli_read_bytes(_z_iosli_t *ios, uint8_t *dst, size_t off
82
static inline void _z_iosli_copy_bytes(_z_iosli_t *dst, const _z_iosli_t *src) {
83
size_t length = _z_iosli_readable(src);
84
assert(dst->_capacity >= length);
85
+ // SAFETY: Checked by assert above.
86
+ // Flawfinder: ignore [CWE-120]
87
(void)memcpy(dst->_buf, src->_buf + src->_r_pos, length);
88
dst->_r_pos = 0;
89
dst->_w_pos = length;
0 commit comments