]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PrebufferedStream: avoid dereferencing end()
authorSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 13:45:06 +0000 (06:45 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 20:18:04 +0000 (13:18 -0700)
commitaf5f143736c083ce8f61b5c038300eb1fbaadcad
tree8a94fbcbea49e97a78e53a2dd7e9ee153a40365f
parentcf6639a04980b00dab5d383f8623823bb68bfa2d
PrebufferedStream: avoid dereferencing end()

This appeared to work, but probably isn't a good idea.

CID 716940: Using invalid iterator (INVALIDATE_ITERATOR)
At (4): Dereferencing iterator "this->m_overflow.end()" though it is already past the end of its container.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/PrebufferedStreambuf.cc