spellfile: Silence PVS/V547: expression may be true on other systems

This commit is contained in:
ZyX
2018-04-22 20:02:28 +03:00
parent f45df71081
commit fb0c35105f

View File

@@ -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;
}