summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/hwpf/hwp/occ/occ_common.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/occ/occ_common.C b/src/usr/hwpf/hwp/occ/occ_common.C
index 96ef4d7f3..1075f3773 100644
--- a/src/usr/hwpf/hwp/occ/occ_common.C
+++ b/src/usr/hwpf/hwp/occ/occ_common.C
@@ -145,6 +145,7 @@ namespace HBOCC
}
// get the full OCC LID and then copy them.
+ assert(lidSize <= 1 * MEGABYTE); // malloc() in occ.C
l_errl = lidMgr.getLid(i_occVirtAddr, lidSize);
if(l_errl)
{
OpenPOWER on IntegriCloud