8000 new safety check in handle_arrexpr() · postgrespro/pg_pathman@ab59cf0 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab59cf0

Browse files
committed
new safety check in handle_arrexpr()
1 parent 776fbc2 commit ab59cf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pg_pathman.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,9 @@ handle_arrexpr(const ScalarArrayOpExpr *expr,
10471047
List *ranges;
10481048
ListCell *lc;
10491049

1050+
if (list_length(arr_expr->elements) == 0)
1051+
goto handle_arrexpr_return;
1052+
10501053
/* Set default ranges for OR | AND */
10511054
ranges = expr->useOr ? NIL : list_make1_irange_full(prel, IR_COMPLETE);
10521055

0 commit comments

Comments
 (0)
0