mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V512: memcpy overflow/underflow #10642
problem: bfredl: pvs thinks the type of the pointed at item is too small. solution: refactored address calculation.
This commit is contained in:
parent
fe2ada7375
commit
f5b5f60b86
@ -359,7 +359,7 @@ static void compose_line(Integer row, Integer startcol, Integer endcol,
|
||||
attrbuf[i+1], &thru);
|
||||
}
|
||||
if (thru) {
|
||||
memcpy(linebuf[i], bg_line[i], (size_t)width * sizeof(linebuf[i]));
|
||||
memcpy(linebuf + i, bg_line + i, (size_t)width * sizeof(linebuf[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user