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

server/sender.c: out-of-bounds read when PAD_LENGTH > 0 #14

Open
pesco opened this issue Aug 8, 2017 · 0 comments
Open

server/sender.c: out-of-bounds read when PAD_LENGTH > 0 #14

pesco opened this issue Aug 8, 2017 · 0 comments

Comments

@pesco
Copy link

pesco commented Aug 8, 2017

senderSendPkt mishandles the PAD_LENGTH define if it is not 0. it will malloc a buffer of size (len + 2 * PAD_LENGTH) and memcpy (len + PAD_LENGTH) bytes from the packet, i.e. PAD_LENGTH bytes from behind the buffer. it will then send (len + 2 * PAD_LENGTH) bytes to the network, i.e. the extra data from behind the packet and PAD_LENGTH uninitialized bytes from the malloced ppacket.

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

No branches or pull requests

1 participant