1
0
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:
dan
2025-10-07 15:14:03 +00:00
parent 7aa5271c72
commit 9b6bc61dbd
8 changed files with 45 additions and 15 deletions

View File

@@ -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]);