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

Fuzzer issue #5984 no.43. Substring generating an invalid string #6139

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

LindsayWray
Copy link

Addresses fuzzer issue #5984 no.43

Problem query:

SELECT substring(decode('u\xD5\x8D1'::BLOB)::VARCHAR, -1);
——
Assertion `utf_type != UnicodeType::INVALID

The issue seemed to be when calling substring with a string containing unicode character(s) and a negative offset.
A negative offset will start indexing from the end of the string and could cut of a unicode character midway when iterating through the string.

@Mytherin Mytherin merged commit 566c5eb into duckdb:master Feb 8, 2023
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 8, 2023

Thanks! LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants