From: Date: July 2 2008 10:55pm Subject: bzr commit into mysql-6.0-falcon branch (klong:2727) Bug#37749 List-Archive: http://lists.mysql.com/commits/48915 X-Bug: 37749 Message-Id: <200807022055.m62KtXcx008857@opt8-a.sanuk.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-falcon/ 2727 Kelly Long 2008-07-02 fix 32-bit math overflow -- Bug #37749 modified: storage/falcon/SectorBuffer.cpp per-file messages: storage/falcon/SectorBuffer.cpp fix 32-bit math overflow === modified file 'storage/falcon/SectorBuffer.cpp' --- a/storage/falcon/SectorBuffer.cpp 2008-06-17 21:00:45 +0000 +++ b/storage/falcon/SectorBuffer.cpp 2008-07-02 20:55:11 +0000 @@ -39,7 +39,7 @@ void SectorBuffer::readPage(Bdb* bdb) void SectorBuffer::readSector() { - uint64 offset = sectorNumber * cache->pagesPerSector * cache->pageSize; + uint64 offset = (uint64)sectorNumber * (uint64)cache->pagesPerSector * (uint64)cache->pageSize; activeLength = dbb->pread(offset, SECTOR_BUFFER_SIZE, buffer); }