Skip to content

This bug that this commit fixes causes getsockopt to randomly fail. The bug also makes memory overwrites possible. #30

Merged
merged 2 commits into from Feb 28, 2012

2 participants

@epatey
epatey commented Feb 9, 2012

Fix uninitialized variable 'option_len' in getsockopt. The parameter option_len is a pointer to an in/out variable. On input, it must specify the size of the output buffer. When uninitialized to a value smaller than the result of getsockopt, the method returns EINVAL.

epatey and others added some commits Feb 9, 2012
@epatey epatey Fix uninitialized variable 'option_len' in getsockopt. The parameter …
…option_len is a pointer to an in/out variable. On input, it must specify the size of the output buffer. When uninitialized to a value smaller than the result of getsockopt, the method returns EINVAL.
b7657ef
Ransom Richardson Fix Dialyzer warnings
Reimplement socket to not rely on undocumented list behavior
20f0fe8
@yrashk
The ZeroMQ project member
yrashk commented Feb 28, 2012

Sorry for the delay, I somehow missed my email notification on this. I am having somebody who's having a similar problem test your fork.

@yrashk
The ZeroMQ project member
yrashk commented Feb 28, 2012

It looks like it helped that person. Merging this in.

Thanks a lot!

@yrashk yrashk merged commit 951aca6 into zeromq:master Feb 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.