-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix of incorrect message size in functions getpeername, getsockname #13107
base: main
Are you sure you want to change the base?
Conversation
Thank you for submitting a pull request! If this is your first PR, make sure to add yourself to AUTHORS. |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
If you can please merge at some point that would be good-annoying bug if you happen to use the POSIX Sockets proxy server. |
Sorry, this fell completely through the cracks.. Looking at the code, I don't think the change is correct? The sockaddr field is varying in length, so its actual size is dynamically defined. It looks to me like the code would change the sockaddr size to be zero, as If this change is panning out for some use, I wonder if it would be due to masking some other bug? Now while looking at this, I see that at least on Unix implementations of POSIX, hthere should exist a type |
I am a little confused-it seems like this change affects the call from the web assembly to the websocket_to_posix_proxy. Without this PR the proxy would error out because it was getting a negative packet size. With this fix the proxy unpacks the header and makes the posix getsockname call, for which it allocates its own address buffer (
i am not sure about the data coming back, it looks like there might not be enough allocation for the return buffer? but out to the proxy this seems ok. |
No description provided.