Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 17751c5fa473fd4f830007590d59e8d15a2d2935
      
https://github.com/tianocore/edk2/commit/17751c5fa473fd4f830007590d59e8d15a2d2935
  Author: Michael LeMay <[email protected]>
  Date:   2016-02-17 (Wed, 17 Feb 2016)

  Changed paths:
    M BaseTools/Source/C/GenFw/Elf32Convert.c
    M BaseTools/Source/C/GenFw/Elf64Convert.c

  Log Message:
  -----------
  BaseTools/GenFw: Exit with error when header lookup fails

This patch revises GetPhdrByIndex and GetShdrByIndex to cause GenFw to
exit with an error message when a section header lookup fails.  The
current behavior of those functions in such circumstances is to return
NULL, which can cause GenFw to subsequently fault when it attempts to
dereference the null pointer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael LeMay <[email protected]>
Reviewed-by: Yonghong Zhu <[email protected]>


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to