diff options
author | drh <> | 2023-02-18 15:50:23 +0000 |
---|---|---|
committer | drh <> | 2023-02-18 15:50:23 +0000 |
commit | 3c7e90b89472f100a5f9608b4899bb801bec465b (patch) | |
tree | 85cce2e86beb368ea5e72f1010299f5b21f3f39b /src/func.c | |
parent | 16cdb4b6323ce160e9cbd8debd8545b986de692c (diff) | |
download | sqlite-3c7e90b89472f100a5f9608b4899bb801bec465b.tar.gz sqlite-3c7e90b89472f100a5f9608b4899bb801bec465b.zip |
Fix a harmless UBSAN warning in debugging code of the new unhex() function.
FossilOrigin-Name: 315574d5cbe5c805ff2163052d986b054985984fb45bfb064d1a7b39a22b90eb
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c index 6a279a9d7..c1efd8acf 100644 --- a/src/func.c +++ b/src/func.c @@ -1269,7 +1269,7 @@ static void unhexFunc( const u8 *zHex = sqlite3_value_text(argv[0]); int nHex = sqlite3_value_bytes(argv[0]); #ifdef SQLITE_DEBUG - const u8 *zEnd = &zHex[nHex]; + const u8 *zEnd = zHex ? &zHex[nHex] : 0; #endif u8 *pBlob = 0; u8 *p = 0; |