Skip to content

Commit 0a42ade

Browse files
committed
Fix to use memmove for relocation of memory within same buffer. Fixes sanitizer report.
1 parent 0e85128 commit 0a42ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod_etsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int EtsiClientGet(EtsiClientCtx* client, EtsiKey* key,
278278
wolfHttpResponsePrint(rsp);
279279

280280
/* move payload (body) to response (same buffer) */
281-
memcpy(key->response, rsp->body, rsp->bodySz);
281+
memmove(key->response, rsp->body, rsp->bodySz);
282282
key->responseSz = rsp->bodySz;
283283
}
284284
else {

0 commit comments

Comments
 (0)