From: drh <> Date: Wed, 3 Jun 2026 11:07:47 +0000 (+0000) Subject: The prefix_length() function should stop at the first NUL terminator. X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=069e5acd63c2fb546170598b34f584431aabd2bc;p=thirdparty%2Fsqlite.git The prefix_length() function should stop at the first NUL terminator. [bugs:/info/2026-06-03T07:42:00Z|Bug 2026-06-03T07:42:00Z]. FossilOrigin-Name: a9b8bdea0683bb03015ea1ee38f75636c80c189eed4b786b6d3d654a831cfdfb --- diff --git a/ext/misc/prefixes.c b/ext/misc/prefixes.c index 9637b92fbe..ab60a22a90 100644 --- a/ext/misc/prefixes.c +++ b/ext/misc/prefixes.c @@ -296,7 +296,7 @@ static void prefixLengthFunc( nByte = (nL > nR ? nL : nR); for(i=0; i