Skip to content

Commit ca588b4

Browse files
authored
CSHARP-5136: Coverity analysis defect 127492: Unintentional integer overflow (#1362)
1 parent f93a3c1 commit ca588b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver.GridFS/GridFSForwardOnlyDownloadStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private void ProcessNextBatch(List<BsonDocument> batch)
274274

275275
if (previousBatch != null)
276276
{
277-
_batchPosition += previousBatch.Count * FileInfo.ChunkSizeBytes; ;
277+
_batchPosition += (long)previousBatch.Count * FileInfo.ChunkSizeBytes;
278278
}
279279

280280
var lastChunkInBatch = _batch.Last();

0 commit comments

Comments
 (0)