mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix out of bounds accesses
git-svn-id: svn://coreboot.org/openbios/openbios-devel@143 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -267,7 +267,7 @@ first_cpu:
|
||||
|
||||
/* Zero out our BSS section. */
|
||||
set _bss - 4, %o0 ! First address of BSS
|
||||
set _estack, %o1 ! Last address of BSS
|
||||
set _estack - 4, %o1 ! Last address of BSS
|
||||
ba 2f
|
||||
nop
|
||||
1:
|
||||
|
||||
@@ -211,7 +211,7 @@ entry:
|
||||
|
||||
/* Zero out our BSS section. */
|
||||
setx _bss - 8, %o7, %o0 ! First address of BSS
|
||||
setx _end, %o7, %o1 ! Last address of BSS
|
||||
setx _end - 8, %o7, %o1 ! Last address of BSS
|
||||
ba 2f
|
||||
nop
|
||||
1:
|
||||
|
||||
Reference in New Issue
Block a user