aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <>2024-03-18 13:31:24 +0000
committerdrh <>2024-03-18 13:31:24 +0000
commitac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2 (patch)
treea34af40fc4a8bbadf407c968369e1210a3131235 /src/printf.c
parent871786b7927bc101e25e38d1c446cecd55939ed4 (diff)
downloadsqlite-ac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2.tar.gz
sqlite-ac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2.zip
Add assert() statements to validate access to the SrcItem.u1.nRow union member.
FossilOrigin-Name: 21f616d9b948efca441f8d45d0a95f4c052ce8b6daec7fa582ad9a00b82ca570
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/printf.c b/src/printf.c
index 0aea74e89..eb22ee320 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -861,6 +861,7 @@ void sqlite3_str_vappendf(
if( pSel->selFlags & SF_NestedFrom ){
sqlite3_str_appendf(pAccum, "(join-%u)", pSel->selId);
}else if( pSel->selFlags & SF_MultiValue ){
+ assert( !pItem->fg.isTabFunc && !pItem->fg.isIndexedBy );
sqlite3_str_appendf(pAccum, "%u-ROW VALUES CLAUSE",
pItem->u1.nRow);
}else{