Skip to content

Actually zero out the bytes in the HandshakeResponse41 #378

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

Merged
merged 1 commit into from
Oct 30, 2015

Conversation

Carrotman42
Copy link
Contributor

:
The specification says these bytes should be zero but the
current implementation simply ignores them. Since
takeSmallBuffer ends up reusing a buffer for this packet the
values might not be all zeros.

:
The specification says these bytes should be zero but the
current implementation simply ignores them. Since
takeSmallBuffer ends up reusing a buffer for this packet the
values might not be all zeros.
julienschmidt added a commit that referenced this pull request Oct 30, 2015
Actually zero out the bytes in the HandshakeResponse320
@julienschmidt julienschmidt merged commit 69e3ed7 into go-sql-driver:master Oct 30, 2015
@julienschmidt
Copy link
Member

Thanks!
How did you find this? Did you encounter any bugs?

@julienschmidt julienschmidt added this to the v1.3 milestone Oct 30, 2015
@Carrotman42
Copy link
Contributor Author

I have a thing for protocols and reading source code that implements them :)

@julienschmidt
Copy link
Member

Perfect, feel free to notify us if you find more!

This driver was definitely not implemented by protocol experts. I actually never worked with network protocols before when I started this driver (as a high-school student)

@xaprb
Copy link

xaprb commented Nov 1, 2015

What an impressive find! (Also, Julien, you and the community you've helped build around this repo always impress me too. This driver is a a great benefit to many companies.)

@Carrotman42 Carrotman42 changed the title Actually zero out the bytes in the HandshakeResponse320 Actually zero out the bytes in the HandshakeResponse41 Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants