]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg: fix buffer overflow in ipv6 addr parsing
authorSage Weil <sage@inktank.com>
Sun, 17 Jun 2012 03:09:04 +0000 (20:09 -0700)
committerSage Weil <sage@inktank.com>
Sun, 17 Jun 2012 03:09:04 +0000 (20:09 -0700)
commit5efaa8d7799347dfae38333b1fd6e1a87dc76b28
tree54da2bd46c776f6e4ffd63e266d1ffb40ffb763a
parentf8a196fb7d1d2e7453ef1dbe2ac5d5d4e5ea0207
msg: fix buffer overflow in ipv6 addr parsing

Noticed because of failing i386 unit tests for long addrs; x86_64 passed
fine.  Sigh.  FTR, the failing address was

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Sadly the full length addrs don't turn it up on x86_64, still, nor does
valgrind notice.  But, this fixes it on i386.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/msg_types.cc
src/test/test_addrs.cc