On 05/26/2017 10:13 PM, Olivier Mascia wrote:
This is on amalgamation code for version 3.19.2. Compiling for 64 bits.
Those were not reported with 3.18 as far as I remember.
Thanks for reporting these. Looks like Joe already fixed them yesterday:
http://www.sqlite.org/src/info/57a60e959c198b87
Dan.
(1) sqlite3.c(189575): warning C4267: 'function': conversion from 'size_t' to
'int', possible loss of data
Line:
iHash = fts5HashKey(nNew, (u8*)fts5EntryKey(p), strlen(fts5EntryKey(p)));
Changed to:
iHash = fts5HashKey(nNew, (u8*)fts5EntryKey(p),
(int)strlen(fts5EntryKey(p)));
(2) sqlite3.c(189888): error C4703: potentially uninitialized local pointer
variable 'zKey' used
*ppDoclist = (const u8*)&zKey[nTerm+1];
Line:
char *zKey;
Changed to:
char *zKey = 0;
Though it looks like zKey indeed is never null when p!=0. That would account
for a false detection by the compiler.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users