mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Update comment
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
This commit is contained in:
parent
b8a22bb67a
commit
8d15991fb4
@ -130,10 +130,10 @@ public:
|
||||
}
|
||||
|
||||
if (
|
||||
// first condition will be true if the value is bigger than int64/uint64 max value
|
||||
// the second condition checks if the value is fit as int64/uint64, but not fit for
|
||||
// designed type, eg. uint32; in that case the errno will be 0, but
|
||||
// we must check the value is not bigger than the given max() at the type class
|
||||
// The first condition will be true when the value is bigger than int64/uint64 maximum value.
|
||||
// The second condition checks whether the value fits into int64/uint64, but not
|
||||
// into the designed type, e.g., uint32; in that case the errno will be 0, but
|
||||
// we must check the value is not bigger than the defined maximum of the class.
|
||||
(errno == ERANGE && val == std::numeric_limits<LimitSigned>::max())
|
||||
||
|
||||
(val > static_cast<LimitSigned>(maxValue()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user