-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Argument cannot be negative
The negative argument will be interpreted as a very large unsigned value. Negative value used as argument to a function expecting a positive value (for example, size of buffer or allocation)
/test/utility/file.c:300: NEGATIVE_RETURNS 138263 Function "pread(rfd, buf, 262144UL, offset)" returns a negative number.
/test/utility/file.c:300: NEGATIVE_RETURNS 138263 Assigning: "n" = "pread(rfd, buf, 262144UL, offset)".
/test/utility/file.c:304: NEGATIVE_RETURNS 138263 "(size_t)n" is passed to a parameter that cannot be negative.
- duplicates
-
WT-11317 Coverity analysis defect 138263: Argument cannot be negative
- Closed