Change a integer variable in sqlite3VdbeRecordUnpack() to unsigned in order

to avoid any possibility of an integer overflow.

FossilOrigin-Name: 1b536f6fd8d58800042f130842f0586aaa357841ee0d1b690a9815c865d50826
This commit is contained in:
drh
2019-01-24 14:16:20 +00:00
parent 55469bbafb
commit 936ade4dba
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -3794,7 +3794,7 @@ void sqlite3VdbeRecordUnpack(
UnpackedRecord *p /* Populate this structure before returning. */
){
const unsigned char *aKey = (const unsigned char *)pKey;
int d;
u32 d;
u32 idx; /* Offset in aKey[] to read from */
u16 u; /* Unsigned loop counter */
u32 szHdr;