We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1149d commit 5c5fa63Copy full SHA for 5c5fa63
src/backend/utils/adt/jsonfuncs.c
@@ -4042,7 +4042,7 @@ jsonb_subscription_evaluate(PG_FUNCTION_ARGS)
4042
text **path;
4043
int i = 0;
4044
4045
- path = (text **) palloc(i * sizeof(text*));
+ path = (text **) palloc(sbsdata->indexprNumber * sizeof(text*));
4046
for (i = 0; i < sbsdata->indexprNumber; i++)
4047
path[i] = cstring_to_text((char *) DatumGetPointer(sbsdata->upper[i]));
4048
0 commit comments