8000 Properly format strings when throw JSON errors by lnkuiper · Pull Request #17331 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Properly format strings when throw JSON errors #17331

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 2 commits into from
May 2, 2025

Conversation

lnkuiper
Copy link
Contributor
@lnkuiper lnkuiper commented May 2, 2025

Fixes https://github.com/duckdblabs/duckdb-internal/issues/4794
JSON can contain pretty much any string, including format specifiers like %s. If we don't print these carefully, we run into an InternalException when trying to throw a descriptive error. With this PR, the error messages are now properly constructed.

@Mytherin
Copy link
Collaborator
Mytherin commented May 2, 2025

Thanks! LGTM

@Mytherin Mytherin merged commit 885d2b4 into duckdb:main May 2, 2025
49 checks passed
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Fix potential vulnerable cloned function (duckdb/duckdb#17339)
Fix potential vulnerable cloned function (duckdb/duckdb#17340)
Properly format strings when throw JSON errors (duckdb/duckdb#17331)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Fix potential vulnerable cloned function (duckdb/duckdb#17339)
Fix potential vulnerable cloned function (duckdb/duckdb#17340)
Properly format strings when throw JSON errors (duckdb/duckdb#17331)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 19, 2025
Fix potential vulnerable cloned function (duckdb/duckdb#17339)
Fix potential vulnerable cloned function (duckdb/duckdb#17340)
Properly format strings when throw JSON errors (duckdb/duckdb#17331)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 19, 2025
Fix potential vulnerable cloned function (duckdb/duckdb#17339)
Fix potential vulnerable cloned function (duckdb/duckdb#17340)
Properly format strings when throw JSON errors (duckdb/duckdb#17331)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0