about summary refs log tree commit diff stats
path: root/linux
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-14 08:09:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-14 08:09:04 -0700
commit63a9263affbdc2fd7bd90c1eaa99abd3e3ddbf5d (patch)
treeef870c74d22fbe01d2bfa1281e13a4fda560e783 /linux
parenta42f4613f785163223c8416bd7fa720bc932ed88 (diff)
downloadmu-63a9263affbdc2fd7bd90c1eaa99abd3e3ddbf5d.tar.gz
.
Fix a stack bug in survey_baremetal. I'm not sure how my tests weren't
crashing, but I won't bother digging further.
Diffstat (limited to 'linux')
-rwxr-xr-xlinux/survey_baremetalbin53105 -> 53111 bytes
-rw-r--r--linux/survey_baremetal.subx1
2 files changed, 1 insertions, 0 deletions
diff --git a/linux/survey_baremetal b/linux/survey_baremetal
index 2c7a7ec4..91e0c575 100755
--- a/linux/survey_baremetal
+++ b/linux/survey_baremetal
Binary files differdiff --git a/linux/survey_baremetal.subx b/linux/survey_baremetal.subx
index 34d51d43..016757a8 100644
--- a/linux/survey_baremetal.subx
+++ b/linux/survey_baremetal.subx
@@ -184,6 +184,7 @@ subx-survey:  # infile: (addr buffered-file), out: (addr buffered-file)
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 $subx-survey:end:
     # . reclaim locals
+    81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               0x18/imm32        # add to esp
     03/add                          0/mod/indirect  5/rm32/.disp32            .             .           4/r32/esp   Max-labels/disp32                 # add *Max-labels to esp
     03/add                          0/mod/indirect  5/rm32/.disp32            .             .           4/r32/esp   Input-size/disp32                 # add *Input-size to esp
     # . restore registers