summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorKrzysztof Koch <krzysztof.koch@arm.com>2019-08-01 16:44:04 -0700
committerJaben Carsey <jaben.carsey@intel.com>2019-08-12 10:13:49 -0700
commit62cefaf44e1cc14376e547e955a846ba456caa93 (patch)
treee3aaa7a7d5331718f0d86893f9dbf6de2d08f2ba /BaseTools/Source/Python/Workspace/BuildClassObject.py
parent1d12f0e671550b7a1ac8f2ce282779069b94073c (diff)
downloadedk2-62cefaf44e1cc14376e547e955a846ba456caa93.tar.gz
edk2-62cefaf44e1cc14376e547e955a846ba456caa93.tar.bz2
edk2-62cefaf44e1cc14376e547e955a846ba456caa93.zip
ShellPkg: acpiview: IORT: Prevent buffer overruns
Modify the IORT table parsing logic to prevent reading past the buffer lengths provided. Change DumpIortNodeIdMappings() function's signature and implementation to simplify buffer overrun prevention. Update all calls to this function accordingly. Modify the parser for each type of IORT node such that the offset from the start of the node's buffer is tracked as the parsing function is executed. Again, this change helps prevent buffer overruns. Test that the IORT node buffer fits in the table buffer before the node's buffer contents are dumped. References: - IO Remapping Table (Issue D), Platform Design Document, March 2018 Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com> Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Reviewed-by: Zhichao Gao <zhichao.gao@inte.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
0 files changed, 0 insertions, 0 deletions