projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c691269
)
comboot: fix memory overwrite bug
author
H. Peter Anvin
<hpa@zytor.com>
Fri, 21 Sep 2007 23:22:58 +0000
(16:22 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Fri, 21 Sep 2007 23:22:58 +0000
(16:22 -0700)
Fix memory overwrite bug, specifically, the use of BP after it might
have gotten clobbered. Since at the point of use, BP is supposed to
be == SP, we can just add "mov bp,sp".
comboot.inc
patch
|
blob
|
history
diff --git
a/comboot.inc
b/comboot.inc
index
3c9df5f
..
ffc9425
100644
(file)
--- a/
comboot.inc
+++ b/
comboot.inc
@@
-187,6
+187,7
@@
comboot_int21: cli
clc
call ax ; Call the invoked function
comboot_resume:
+ mov bp,sp ; In case the function clobbers BP
setc P_FLAGSL ; Propagate CF->error
popad
pop gs