bugzilla-daemon at mindrot.org
2024-Sep-11 12:25 UTC
[Bug 3734] New: Expression 'l > SIZE_MAX' is always false
https://bugzilla.mindrot.org/show_bug.cgi?id=3734 Bug ID: 3734 Summary: Expression 'l > SIZE_MAX' is always false Product: Portable OpenSSH Version: 9.8p1 Hardware: Other OS: All Status: NEW Severity: enhancement Priority: P5 Component: Build system Assignee: unassigned-bugs at mindrot.org Reporter: suhov.ra at npc-ksb.ru File: https://github.com/openssh/openssh-portable/blob/master/sshbuf-misc.c Line: 221 Expression 'l > SIZE_MAX' is always false , which may be caused by a logical error: 'l' has a type 'size_t' with minimum value '0' and a maximum value '18446744073709551615' Instead, other methods should be used to protect against overflows or similar problems, or this condition should be removed as unimportant. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Sep-11 23:13 UTC
[Bug 3734] Expression 'l > SIZE_MAX' is always false
https://bugzilla.mindrot.org/show_bug.cgi?id=3734 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org --- Comment #1 from Damien Miller <djm at mindrot.org> --- Are you filing bugs from the results of a static analyser? -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Oct-02 11:11 UTC
[Bug 3734] Expression 'l > SIZE_MAX' is always false
https://bugzilla.mindrot.org/show_bug.cgi?id=3734 --- Comment #2 from Suhov Roman <suhov.ra at npc-ksb.ru> --- (In reply to Damien Miller from comment #1)> ?? ????????????? ?????? ?? ??????????? ???????????? ????????????The static analyzer produced this error, after which I analyzed it -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Seemingly Similar Threads
- [Bug 3732] New: An integer underflow may occur due to arithmetic operation (unsigned subtraction) between values '0' and '67108864', where the first value comes from the expression 'h4 + b' and the second value comes from the expression '(1 << 26)'
- [Bug 3730] New: Integer overflow when adding 6000 and display_number
- [Bug 3731] New: Integer overflow when adding 6000 and display_number
- [Bug 3735] New: The ngroups variable may be set to a negative value when calling sysconf(_SC_NGROUPS_MAX)
- libFLAC with Android NDK: use of undeclared identifier 'SIZE_MAX'