mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-21 11:13:54 +03:00
Fix some integer overflow warnings in the base64 and base85 extensions.
FossilOrigin-Name: 06b4bd2aba22c57f5a5fed606c3bee225dee6fdc13bb16cc58194040ef0d7d85
This commit is contained in:
@@ -1156,7 +1156,7 @@ void sqlite3QuoteValue(StrAccum *pStr, sqlite3_value *pValue, int bEscape){
|
||||
*/
|
||||
static int isNHex(const char *z, int N, u32 *pVal){
|
||||
int i;
|
||||
int v = 0;
|
||||
u32 v = 0;
|
||||
for(i=0; i<N; i++){
|
||||
if( !sqlite3Isxdigit(z[i]) ) return 0;
|
||||
v = (v<<4) + sqlite3HexToInt(z[i]);
|
||||
|
Reference in New Issue
Block a user