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

PR for odbc-359 as requested #56

Merged
merged 2 commits into from May 12, 2022
Merged

PR for odbc-359 as requested #56

merged 2 commits into from May 12, 2022

Conversation

patrick-braun
Copy link
Contributor

This submission and all changes and additions are contributed under the new BSD license.

I was a bit unsure in what test file to put my new test case. If it doesn't fit where I put it please tell me and I'll move it.

…_WCHAR

It is possible to pass a valid length buffer but no target buffer (and set BufferLength to 0) in SQLBindCol
to get the length of that columns data but not actually copy it. To check if an error occurred the ptr was dereferenced without
first checking if it points to a valid buffer which lead to a segfault.
test/info.c Outdated Show resolved Hide resolved
@lawrinn
Copy link
Collaborator

lawrinn commented May 10, 2022

I am also unsure about where to put it, but info.c seems to be wrong location. blob.c even probably fits the best

@lawrinn lawrinn merged commit d021e22 into mariadb-corporation:master May 12, 2022
@lawrinn
Copy link
Collaborator

lawrinn commented May 12, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants