mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
spellfile: Silence PVS/V547: expression may be true on other systems
This commit is contained in:
@@ -1644,7 +1644,7 @@ spell_read_tree (
|
||||
if (len < 0) {
|
||||
return SP_TRUNCERROR;
|
||||
}
|
||||
if ((size_t)len >= SIZE_MAX / sizeof(int)) {
|
||||
if ((size_t)len >= SIZE_MAX / sizeof(int)) { // -V547
|
||||
// Invalid length, multiply with sizeof(int) would overflow.
|
||||
return SP_FORMERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user