8000 Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP by Tmonster · Pull Request #16394 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP #16394

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

Tmonster
Copy link
Contributor
@Tmonster Tmonster commented Feb 25, 2025

Fixes duckdb/duckdb-fuzzer#3990

Fix (I think) Is to not use the DivModPositive Function as it assumes the LHS is positive. However, it seems like when NULL is cast to Timestamp a negative timestamp/hugeint_t value is used.

Another fix may be a different timestamp value when casting NULL.

Commit causing the error was 1e404813c9ec1ebe47e4d1b4dccfd86ad978ba7d.

CC @hawkfish

@Mytherin Mytherin merged commit 5cdaf56 into duckdb:main Feb 26, 2025
51 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 17, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Fuzzer Fix: Fix Avg for NULL cast to TIMESTAMP (duckdb/duckdb#16394)
MAIN_BRANCH_VERSIONING: Adopt also for Python build and amalgamation (duckdb/duckdb#16400)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
0