Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/sljit/dist/sljit_src Apply a bugfix from r2...



details:   https://anonhg.NetBSD.org/src/rev/5721b720b871
branches:  trunk
changeset: 336193:5721b720b871
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Mon Feb 16 13:33:24 2015 +0000

description:
Apply a bugfix from r282 http://sourceforge.net/p/sljit/code/282/.

The bug was originally reported by me in a newer upstream version.
American fuzzy lop rediscovered it for the version of sljit in the
NetBSD tree.

diffstat:

 sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2bbc08da4a29 -r 5721b720b871 sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c
--- a/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c     Mon Feb 16 13:30:15 2015 +0000
+++ b/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c     Mon Feb 16 13:33:24 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sljitNativeX86_common.c,v 1.6 2014/06/17 19:33:20 alnsn Exp $  */
+/*     $NetBSD: sljitNativeX86_common.c,v 1.7 2015/02/16 13:33:24 alnsn Exp $  */
 
 /*
  *    Stack-less Just-In-Time compiler
@@ -1749,7 +1749,7 @@
                        *(sljit_si*)inst = (sljit_si)src2w;
                }
                else {
-                       EMIT_MOV(compiler, TMP_REG2, 0, SLJIT_IMM, src1w);
+                       EMIT_MOV(compiler, TMP_REG2, 0, SLJIT_IMM, src2w);
                        if (dst_r != src1)
                                EMIT_MOV(compiler, dst_r, 0, src1, src1w);
                        inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG2, 0);



Home | Main Index | Thread Index | Old Index