From c40ae2c3fbab796a95bd512dd72c29345cbe0dfc Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 11 Jan 2012 19:27:11 -0500 Subject: [PATCH] Packet: Put back part of the assert --- src/mem/packet.cc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2