Skip to content

nanodbc: wvarchar: make sure to not read past pdata_ end#1012

Open
detule wants to merge 1 commit into
mainfrom
fixup/buggy-snowflake-driver-defensive
Open

nanodbc: wvarchar: make sure to not read past pdata_ end#1012
detule wants to merge 1 commit into
mainfrom
fixup/buggy-snowflake-driver-defensive

Conversation

@detule

@detule detule commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Snowflake ODBC driver, via the SQLDescribeCol api reports SQL_WVARCHAR[255] for the REMARKS column of the SQLTables output, and we allocate buffers against this report. However, table comments are actually VARCHAR[MAX], and long comments will overflow these buffers.

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.

1 participant