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

CREATE TABLE causes "free(): invalid pointer" #33

Closed
mrigger opened this issue May 3, 2021 · 0 comments
Closed

CREATE TABLE causes "free(): invalid pointer" #33

mrigger opened this issue May 3, 2021 · 0 comments
Assignees
Milestone

Comments

@mrigger
Copy link

mrigger commented May 3, 2021

When issuing a CREATE TABLE t0(c0 INT); statement to sqlcheck, it crashes with the following error: free(): invalid pointer. When putting the statement in a file and using the -f flag, it instead results in an error Parenthesis is not closed.. It seems that sqlcheck expects whitespace after the table name, since the following is processed as expected: CREATE TABLE t0 (c0 INT);.

+-------------------------------------------------+
|                   SQLCHECK                      |
+-------------------------------------------------+
> RISK LEVEL    :: ALL ANTI-PATTERNS
> COLOR MODE    :: DISABLED
> VERBOSE MODE  :: DISABLED
> DELIMITER     :: ;
-------------------------------------------------
==================== Results ===================
CREATE TABLE t0(c0 INT);
free(): invalid pointer
Aborted

I found this based on commit 3070b2d.

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

No branches or pull requests

2 participants