diff options
author | drh <drh@noemail.net> | 2011-06-13 12:19:21 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-06-13 12:19:21 +0000 |
commit | 0a32fa6d8150d8b5399a87d6c3ee7a679ee241a6 (patch) | |
tree | 45e2bbab28b06472bfea16c6eac6426a8d8c49b7 /src/sqliteInt.h | |
parent | 7006c18e0043a2787b763e7fa7f3a0df964fe5cf (diff) | |
download | sqlite-0a32fa6d8150d8b5399a87d6c3ee7a679ee241a6.tar.gz sqlite-0a32fa6d8150d8b5399a87d6c3ee7a679ee241a6.zip |
Use only unsigned values in the implementatin of LIKE and GLOB so that
values won't overflow to negative when dealing with malformed UTF8.
FossilOrigin-Name: 77f01578bb565d1bc884b374b68bae10ce34a084
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 8cf8966fe..83ddb2d5a 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2879,7 +2879,7 @@ int sqlite3GetInt32(const char *, int*); int sqlite3Atoi(const char*); int sqlite3Utf16ByteLen(const void *pData, int nChar); int sqlite3Utf8CharLen(const char *pData, int nByte); -int sqlite3Utf8Read(const u8*, const u8**); +u32 sqlite3Utf8Read(const u8*, const u8**); /* ** Routines to read and write variable-length integers. These used to |