From: Ali Saidi Date: Thu, 12 Jan 2012 00:27:11 +0000 (-0500) Subject: Packet: Put back part of the assert X-Git-Tag: stable_2012_06_28~275^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c40ae2c3fbab796a95bd512dd72c29345cbe0dfc;p=gem5.git Packet: Put back part of the assert --- diff --git a/src/mem/packet.cc b/src/mem/packet.cc index aefaf975d..64f4fcd14 100644 --- a/src/mem/packet.cc +++ b/src/mem/packet.cc @@ -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() + func_offset;