mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 06:30:38 +00:00
inetcomm: Avoid overlapping memcpy (Coverity).
This commit is contained in:
parent
45e00e5516
commit
a57b06c5ac
|
@ -1613,13 +1613,13 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc
|
||||||
|
|
||||||
if(overlap == buf) /* 1st iteration */
|
if(overlap == buf) /* 1st iteration */
|
||||||
{
|
{
|
||||||
memcpy(buf, buf + PARSER_BUF_SIZE - overlap_no, overlap_no);
|
memmove(buf, buf + PARSER_BUF_SIZE - overlap_no, overlap_no);
|
||||||
overlap = buf + overlap_no;
|
overlap = buf + overlap_no;
|
||||||
start += read - overlap_no;
|
start += read - overlap_no;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memcpy(buf, buf + PARSER_BUF_SIZE, overlap_no);
|
memmove(buf, buf + PARSER_BUF_SIZE, overlap_no);
|
||||||
start += read;
|
start += read;
|
||||||
}
|
}
|
||||||
} while(1);
|
} while(1);
|
||||||
|
|
Loading…
Reference in a new issue