commit | f46138362aba4a424059b8bc8cc2d2fcc6d3ee66 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Nov 11 21:55:42 2009 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Nov 12 11:27:37 2009 -0800 |
tree | a83166fc018ff5c05083a2a50add9f4db0e4bf3c | |
parent | de1aa11481e683c247f5609ce409ae674ee1c1b5 [diff] |
Fix a buffer overrun in OSNetworkSystem. Given an IPv6 address in a non-standard (Java-specific) form, we used to overrun an on-stack buffer that was assuming the standard (shorter) form. Make the buffer large enough for both forms, and reject anything that's still too large. Found by Inet6AddressTest.