#include <boost/intrusive/set.hpp>
#include <boost/optional.hpp>
-#include "include/ceph_assert.h" // boost clobbers this
#include "include/intarith.h"
#include "include/int_types.h"
#include "include/scope_guard.h"
uint32_t *struct_len) { \
const char *pos = p.get_pos(); \
char *end = *start_pos + *struct_len; \
- ceph_assert(pos <= end); \
+ if (pos > end) { \
+ throw ::ceph::buffer::malformed_input(__PRETTY_FUNCTION__); \
+ } \
if (pos < end) { \
p += end - pos; \
} \