From 2609ed2a7cf736834cafcf0b07465c45dfb567e3 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Fri, 7 Apr 2006 16:26:22 -0400 Subject: a bit of bad code trampling on memory --HG-- extra : convert_revision : c0252dce6d7fc4c35ecd9f87ac4555e704de91b7 --- mem/bus.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mem/bus.cc') diff --git a/mem/bus.cc b/mem/bus.cc index 0cadc2045..8e8bc2203 100644 --- a/mem/bus.cc +++ b/mem/bus.cc @@ -85,8 +85,10 @@ Bus::recvFunctional(Packet &pkt, int id) void Bus::recvStatusChange(Port::Status status, int id) { - assert(status == Port:: RangeChange && + assert(status == Port::RangeChange && "The other statuses need to be implemented."); + + assert(id < interfaces.size() && id >= 0); Port *port = interfaces[id]; AddrRangeList ranges; AddrRangeList snoops; -- cgit v1.2.3