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

Check validity of any() or all() results that could be null #3024

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Jul 26, 2021

While reviewing the legacy timestamp casting changes, I noticed that any() and all() can return a null scalar result, but there are places in the plugin code where it blindly assumes the value cannot be null. This updates those locations to check for validity of the scalar before checking the value, as it's undefined behavior to access a null scalar value.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe self-assigned this Jul 26, 2021
@jlowe
Copy link
Member Author

jlowe commented Jul 26, 2021

build

@jlowe
Copy link
Member Author

jlowe commented Jul 27, 2021

build

@sameerz sameerz added the task Work required that improves the product but is not user facing label Jul 27, 2021
@sameerz sameerz added this to the July 19 - July 30 milestone Jul 27, 2021
@jlowe jlowe requested a review from revans2 July 28, 2021 17:26
@jlowe jlowe merged commit a00cb1b into NVIDIA:branch-21.08 Jul 28, 2021
@jlowe jlowe deleted the fix-any-all-invalid branch September 10, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants