From: drh <> Date: Fri, 9 Jan 2026 00:45:41 +0000 (+0000) Subject: Fix potential OOB read on the undocumented test function rtreenode() in X-Git-Tag: release~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a621d8a58cc811cf749aea4b6b02c74036aa234;p=thirdparty%2Fsqlite.git Fix potential OOB read on the undocumented test function rtreenode() in the RTREE extension. FossilOrigin-Name: f567ea96905ec58bb073b675e820ba505d3306338fdefd64bdd5cf965a3a9e88 --- diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index 8b913ef2df..b3d29283e5 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -3775,7 +3775,7 @@ static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){ if( node.zData==0 ) return; nData = sqlite3_value_bytes(apArg[1]); if( nData<4 ) return; - if( nData