[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 371/437: Correct read of freed memory
From: |
Andy Wingo |
Subject: |
[Guile-commits] 371/437: Correct read of freed memory |
Date: |
Mon, 2 Jul 2018 05:14:58 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 20955b2bfc97b906149af3b2327e2113baf5ff25
Author: pcpa <address@hidden>
Date: Sun Mar 1 11:38:41 2015 -0300
Correct read of freed memory
---
doc/body.texi | 12 ++++++------
doc/printf.c | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/doc/body.texi b/doc/body.texi
index 23b8b8f..a527db7 100644
--- a/doc/body.texi
+++ b/doc/body.texi
@@ -1068,10 +1068,10 @@ int main(int argc, char *argv[])
@rem{/* call the generated address@hidden passing its size as argument */}
myFunction((char*)jit_address(end) - (char*)jit_address(start));
- jit_clear_state();
jit_disassemble();
+ jit_clear_state();
jit_destroy_state();
finish_jit();
return 0;
@@ -1127,15 +1127,15 @@ call must be done after the @code{emit} call or either
a fatal error
will happen (if @lightning{} is built with assertions enable) or an
undefined value will be returned.
address@hidden jit_clear_state();
-Note that @code{jit_clear_state} was called after executing jit in
-this example. It was done because it must be called after any call
-to @code{jit_address} or @code{jit_print}.
-
@item jit_disassemble();
@code{disassemble} will dump the generated code to standard output,
unless @lightning{} was built with the disassembler disabled, in which
case no output will be shown.
+
address@hidden jit_clear_state();
+Note that @code{jit_clear_state} was called after executing jit in
+this example. It was done because it must be called after any call
+to @code{jit_address} or @code{jit_print}.
@end table
@node RPN calculator
diff --git a/doc/printf.c b/doc/printf.c
index 8548541..2ab0738 100644
--- a/doc/printf.c
+++ b/doc/printf.c
@@ -30,10 +30,10 @@ int main(int argc, char *argv[])
/* call the generated code, passing its size as argument */
myFunction((char*)jit_address(end) - (char*)jit_address(start));
- jit_clear_state();
jit_disassemble();
+ jit_clear_state();
jit_destroy_state();
finish_jit();
return 0;
- [Guile-commits] 314/437: Add back files missed when reapplying patches, (continued)
- [Guile-commits] 314/437: Add back files missed when reapplying patches, Andy Wingo, 2018/07/02
- [Guile-commits] 354/437: Implement the jit_arg_register_p predicate., Andy Wingo, 2018/07/02
- [Guile-commits] 381/437: Remove wrong comment after cut and paste, Andy Wingo, 2018/07/02
- [Guile-commits] 209/437: Correct float division and LX with stop code generation., Andy Wingo, 2018/07/02
- [Guile-commits] 280/437: Implement the new jit_set_code interface., Andy Wingo, 2018/07/02
- [Guile-commits] 284/437: ARM: Do not emit a nop stack adjust instruction., Andy Wingo, 2018/07/02
- [Guile-commits] 345/437: PPC: Implement and use mcrxr emulation by default, Andy Wingo, 2018/07/02
- [Guile-commits] 246/437: Use the logic to workaround float NaN and Inf Hercules bug conditional, Andy Wingo, 2018/07/02
- [Guile-commits] 363/437: Correct typo, Andy Wingo, 2018/07/02
- [Guile-commits] 383/437: ia64: Implement cache flush., Andy Wingo, 2018/07/02
- [Guile-commits] 371/437: Correct read of freed memory,
Andy Wingo <=
- [Guile-commits] 342/437: x86: Implement support for the x32 abi, Andy Wingo, 2018/07/02
- [Guile-commits] 416/437: Build and pass all tests on 32 and 64 bit sparc, Andy Wingo, 2018/07/02
- [Guile-commits] 400/437: Correct missing jit_unget_reg calls, Andy Wingo, 2018/07/02
- [Guile-commits] 418/437: Correct typo and values in jit_sparc-sz.c, Andy Wingo, 2018/07/02
- [Guile-commits] 359/437: ARM: Regenerate size table for hard float armv7 or newer., Andy Wingo, 2018/07/02
- [Guile-commits] 396/437: Move definition of jit_va_ codes, cosmetic change., Andy Wingo, 2018/07/02
- [Guile-commits] 407/437: Update copyright year, Andy Wingo, 2018/07/02
- [Guile-commits] 435/437: Add GUILE_ENABLE_JIT macro, Andy Wingo, 2018/07/02
- [Guile-commits] 367/437: X86: No longer make st7 available as a temporary, Andy Wingo, 2018/07/02
- [Guile-commits] 406/437: Adapt for binutils 2.29, Andy Wingo, 2018/07/02