Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOF and query crashed caused by invalid index in columnFromVar, called from qualFromBoolExpr #187

Closed
kaidaguerre opened this issue May 20, 2022 · 0 comments

Comments

@kaidaguerre
Copy link
Contributor

columnFromVar tries to determine the index of the type information in the cinfos array using

var arrayIndex = int(variable.varattno - 1)

However in some cases varattno is negative, causing unpredictable results

The tactical solution is to put a range check on the index.

More work is needed to understand why this value is negative and identify potential bugs further upstream
#186

@kaidaguerre kaidaguerre changed the title EOF and query crashed caused by invalid index in qualFromBoolExpr, called from qualFromBoolExpr EOF and query crashed caused by invalid index in columnFromVar, called from qualFromBoolExpr May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant