• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision644da9b39e477caa80bab69d2847dfcb468f0d33 (tree)
Time2015-11-23 21:16:05
AuthorJohn Clarke <johnc@kirr...>
CommiterRichard Henderson

Log Message

tcg: Fix highwater check

A simple typo in the variable to use when comparing vs the highwater mark.
Reports are that qemu can in fact segfault occasionally due to this mistake.

Signed-off-by: John Clarke <johnc@kirriwa.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>

Change Summary

Incremental Difference

--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -2443,7 +2443,7 @@ int tcg_gen_code(TCGContext *s, tcg_insn_unit *gen_code_buf)
24432443 one operation beginning below the high water mark cannot overrun
24442444 the buffer completely. Thus we can test for overflow after
24452445 generating code without having to check during generation. */
2446- if (unlikely(s->code_gen_ptr > s->code_gen_highwater)) {
2446+ if (unlikely((void *)s->code_ptr > s->code_gen_highwater)) {
24472447 return -1;
24482448 }
24492449 }