MT#55283 silence asan warning

Change-Id: I131e51fc826a52fb571e78f09aea3aa99e9e7e1f
(cherry picked from commit 98c088fced)
(cherry picked from commit 08a34f170b)
mr13.4.1
Richard Fuchs 9 months ago
parent 35935ee6ee
commit 9019b98a5c

@ -380,6 +380,9 @@ INLINE str bencode_strdup_str(bencode_buffer_t *buf, const char *s) {
INLINE str bencode_str_strdup(bencode_buffer_t *buf, const str *s) {
str o = *s;
o.s = bencode_buffer_alloc(buf, o.len);
#ifdef ASAN_BUILD
if (o.len)
#endif
memcpy(o.s, s->s, o.len);
return o;
}

Loading…
Cancel
Save