Fix sanitizer complaint in fts3 code.

FossilOrigin-Name: 424b39eaeb578f85e58214af4b467e6e363431308ab7a327774e62fa70d3c2db
This commit is contained in:
dan 2021-03-10 20:04:21 +00:00
parent 55b2e8b062
commit 3fb7bd5ee0
3 changed files with 8 additions and 7 deletions

View File

@ -285,6 +285,7 @@ static int unicodeOpen(
pCsr->aInput = (const unsigned char *)aInput;
if( aInput==0 ){
pCsr->nInput = 0;
pCsr->aInput = (const unsigned char*)"";
}else if( nInput<0 ){
pCsr->nInput = (int)strlen(aInput);
}else{

View File

@ -1,5 +1,5 @@
C Fix\sfurther\ssanitizer\scomplaints\sin\sthe\sfts5\scode.
D 2021-03-10T19:32:47.661
C Fix\ssanitizer\scomplaint\sin\sfts3\scode.
D 2021-03-10T20:04:21.459
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@ -100,7 +100,7 @@ F ext/fts3/fts3_tokenize_vtab.c 8d15b148e7d88a4280389a200b26e8d52abda4c4ec2e9a35
F ext/fts3/fts3_tokenizer.c 6d8fc150c48238955d5182bf661498db0dd473c8a2a80e00c16994a646fa96e7
F ext/fts3/fts3_tokenizer.h 64c6ef6c5272c51ebe60fc607a896e84288fcbc3
F ext/fts3/fts3_tokenizer1.c 5c98225a53705e5ee34824087478cf477bdb7004
F ext/fts3/fts3_unicode.c 4b9af6151c29b35ed09574937083cece7c31e911f69615e168a39677569b684d
F ext/fts3/fts3_unicode.c de426ff05c1c2e7bce161cf6b706638419c3a1d9c2667de9cb9dc0458c18e226
F ext/fts3/fts3_unicode2.c 416eb7e1e81142703520d284b768ca2751d40e31fa912cae24ba74860532bf0f
F ext/fts3/fts3_write.c a5159accfd88f85fd3fc2298286d7a9427a02d1ea9a52b7c79730cff7a0bc03f
F ext/fts3/fts3speed.tcl b54caf6a18d38174f1a6e84219950d85e98bb1e9
@ -1910,7 +1910,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P 27d3c00efef66ad48ed94228474dbea3ad81ea5c19425028c42cf4220920a645
R 5396f8efba604a58d0112f83a98f4e4c
P 4cb00b9d4020a51f690720c6f51009c5be8c22ef8c70807ead1d953d19784f26
R ae32cbb11dd06e29778fac69f4d24ea6
U dan
Z 0f40cb4fc279460a8d2394e9176146fe
Z d3688e9e8b7aef7ca2de4f6e429be486

View File

@ -1 +1 @@
4cb00b9d4020a51f690720c6f51009c5be8c22ef8c70807ead1d953d19784f26
424b39eaeb578f85e58214af4b467e6e363431308ab7a327774e62fa70d3c2db