Skip to content

CRITICAL: INSERT column count not validated #152

Description

@poyrazK

Why is this an issue?

In include/parser/parser.hpp:142-168:

row.push_back(parse_expression());
} while (match(TokenType::Comma));
stmt->add_row(std::move(row));
// No validation row.size() matches column count!

INSERT doesn't check value count matches schema.

What is causing it?

Missing validation in parser.

How can it be solved?

Validate row size against table column count.

Category

  • Small
  • Medium
  • Large
  • Critical

Severity

  • Low
  • Medium
  • High
  • Critical

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions