Descriptionnacl_io: only copy up to the size of the sockaddr_in*, not the given len.
One of the tests (SocketTestTCP, Listen) submits a len
"addrlen = sizeof(addr) + 10", so that causes the memcpy
to overwrite part of the caller's stack (because
the outparam points at the stack).
Related to:
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3867
(last time the compile change caused the test to fail)
NOTRY=true
(only an SDK change)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274689
Patch Set 1 #
Total comments: 4
Patch Set 2 : min(len, sizeof) instead #Patch Set 3 : not depend on prev addrlen #Patch Set 4 : test w/ bigger buffer too #Patch Set 5 : stuff #
Total comments: 1
Messages
Total messages: 10 (0 generated)
|