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

SQLancer causes assertion error on UTF8_strlen #6885

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

SQLancer causes assertion error on UTF8_strlen #6885

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
bug Something isn't working minor SQL

Comments

@monetdb-team
Copy link

Date: 2020-06-10 14:05:07 +0200
From: @PedroTadim
To: SQL devs <>
Version: 11.37.7 (Jun2020)

Last updated: 2020-07-27 09:30:14 +0200

Comment 27815

Date: 2020-06-10 14:05:07 +0200
From: @PedroTadim

User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Build Identifier:

Run the query below for an assertion failure.

Reproducible: Always

Steps to Reproduce:

  1. insert into integers(i) values(((length(reverse('8 \rcr੧[bp1eMY쫺4j5s뮯!<Rn4*}')))>>(((- (- (528640982)))&(ascii('528640982'))))));

Actual Results:

mserver5: ../../../../src/monetdb5/modules/atoms/str.c:2924: UTF8_assert: Assertion `0' failed.

Expected Results:

I'm not sure, but the shift should be too large, so a runtime error should be thrown.

Comment 27816

Date: 2020-06-10 14:57:04 +0200
From: MonetDB Mercurial Repository <>

Changeset e4cb5e4c3341 made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=e4cb5e4c3341

Changeset description:

Fix for bug #6885. Added support for UTF-8 strings at reverse(string) function
@monetdb-team monetdb-team added bug Something isn't working minor SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor SQL
Projects
None yet
Development

No branches or pull requests

2 participants