Packet: Put back part of the assert

This commit is contained in:
Ali Saidi
2012-01-11 19:27:11 -05:00
parent bc1c21274e
commit c40ae2c3fb

View File

@@ -286,6 +286,7 @@ Packet::checkFunctional(Printable *obj, Addr addr, int size, uint8_t *data)
"for functional copying!");
}
}
assert(bytesValidEnd <= getSize());
// copy partial data into the packet's data array
uint8_t *dest = getPtr<uint8_t>() + func_offset;