mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix a bug in the btree code for reading varints greater than 2^32. (CVS 1349)
FossilOrigin-Name: 7bc4f5543fbfa9f3fe6e9479a1f85fbaf6c95af4
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
** in this file for details. If in doubt, do not deviate from existing
|
||||
** commenting and indentation practices when changing or adding code.
|
||||
**
|
||||
** $Id: vdbe.c,v 1.275 2004/05/11 00:28:43 danielk1977 Exp $
|
||||
** $Id: vdbe.c,v 1.276 2004/05/11 02:10:07 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -3211,7 +3211,8 @@ case OP_PutStrKey: {
|
||||
** the integer key, and zKey to NULL.
|
||||
*/
|
||||
if( pC->intKey ){
|
||||
nKey = pNos->i;
|
||||
nKey = intToKey(pNos->i);
|
||||
assert( keyToInt(nKey)==pNos->i );
|
||||
zKey = 0;
|
||||
}else{
|
||||
/* TODO: can this happen? zKey is not correctly byte-ordered here! */
|
||||
|
Reference in New Issue
Block a user