diff options
author | Brian Horton <brianh@linux.ibm.com> | 2015-09-21 11:32:22 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-09-21 15:27:16 -0500 |
commit | ed6041b44b52d4948c4a8e8faa1e9c98ff493ced (patch) | |
tree | 50d7b6092803bf897c20ccb93dca1cee4033d4ab /src/usr/hwpf/hwp | |
parent | 7e5b9c663f1aa6c739580fd72b88246e60f8a66c (diff) | |
download | blackbird-hostboot-ed6041b44b52d4948c4a8e8faa1e9c98ff493ced.tar.gz blackbird-hostboot-ed6041b44b52d4948c4a8e8faa1e9c98ff493ced.zip |
add assert for occ lidSize.
Change-Id: Ifba4c90e4c3468eaeb0982092afbf733e24d5f9d
RTC: 115587
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20660
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp')
-rw-r--r-- | src/usr/hwpf/hwp/occ/occ_common.C | 1 |
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) { |