Commit: 24cf049395020c360534328a8c6b931a03a5f7dd
Parent: 684a17f7cc789735f4cf46847525d70483dbb148
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 21:59:20
Tree: 8436e7c7f3d6ed5868198d6bb8c95f8e595087ef

rctest: Fix possible overrun Error: OVERRUN (CWE-119): [#def57] [important] tools/rctest.c:557:3: overrun-buffer-arg: Calling "send" with "buf" and "len" is suspicious because of the very large index, 18446744073709551615. The index may be due to a negative parameter being interpreted as unsigned. 555| } 556| len = read(fd, buf, data_size); 557|-> send(sk, buf, len, 0); 558| close(fd); 559| return;

Diffstat

M tools/rctest.c | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)

View Full Diff | Patch