]>
git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: assert if buffer advance length overflow
In the old ceph version, buffer advance length was defined as int, but
in async msg, the real length of data buffer was defined as unsigned.
Occassionly some MDS message back from OSD was too large, which caused
this length overflow and made MDS crash.
For compatibility reason, add an assertion here if buffer advance length
is overflow.
Fixes: http://tracker.ceph.com/issues/36340
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>