Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a harmless compiler warning. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5ace870d3ac3e9eb29cb4602c9036873 |
User & Date: | drh 2016-03-22 15:25:16.949 |
Context
2016-03-22
| ||
15:26 | Fix harmless compiler warning for MSVC. (check-in: 142cd359d3 user: mistachkin tags: trunk) | |
15:25 | Fix a harmless compiler warning. (check-in: 5ace870d3a user: drh tags: trunk) | |
15:01 | Fix some errors in fts5 test scripts. (check-in: e1ab2d376a user: dan tags: trunk) | |
Changes
Changes to src/btree.c.
︙ | ︙ | |||
4469 4470 4471 4472 4473 4474 4475 | aPayload = pCur->info.pPayload; #ifdef SQLITE_DIRECT_OVERFLOW_READ bEnd = offset+amt==pCur->info.nPayload; #endif assert( offset+amt <= pCur->info.nPayload ); assert( aPayload > pPage->aData ); | | | 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 | aPayload = pCur->info.pPayload; #ifdef SQLITE_DIRECT_OVERFLOW_READ bEnd = offset+amt==pCur->info.nPayload; #endif assert( offset+amt <= pCur->info.nPayload ); assert( aPayload > pPage->aData ); if( (uptr)(aPayload - pPage->aData) > (pBt->usableSize - pCur->info.nLocal) ){ /* Trying to read or write past the end of the data is an error. The ** conditional above is really: ** &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize] ** but is recast into its current form to avoid integer overflow problems */ return SQLITE_CORRUPT_BKPT; } |
︙ | ︙ |