mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix incorrect stack (dropping one too many items) when a phandle of 0 is passed into getprop CIF.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@735 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
f21a9ceb00
commit
aa6519e1f2
@@ -92,7 +92,7 @@ external
|
||||
then
|
||||
|
||||
\ return -1 if phandle is 0 (MacOS actually does this)
|
||||
?dup 0= if 2drop 2drop -1 exit then
|
||||
?dup 0= if drop 2drop -1 exit then
|
||||
|
||||
over cstrlen swap
|
||||
?phandle get-package-property if 2drop -1 exit then
|
||||
|
||||
Reference in New Issue
Block a user