-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Dotnet Drivers
-
Not Needed
-
Unintentional integer overflow
The expression's value may not be what the programmer intended, because the expression is evaluated using a narrow (i.e. few bits) integer type. An integer overflow occurs, with the result converted to a wider integer type
/src/MongoDB.Driver.GridFS/GridFSForwardOnlyDownloadStream.cs:277: OVERFLOW_BEFORE_WIDEN 127492 Potentially overflowing expression "previousBatch.Count * this.FileInfo.ChunkSizeBytes" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "long" (64 bits, signed).