[Ups-cvs] ups/ups xc_machine.c,1.6,1.7
Brought to you by:
ianedwards
From: Tom H. <th...@us...> - 2007-11-22 10:17:59
|
Update of /cvsroot/ups/ups/ups In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15279/ups Modified Files: xc_machine.c Log Message: Check the address that we're actually about to try and dereference rather than some other random value... Index: xc_machine.c =================================================================== RCS file: /cvsroot/ups/ups/ups/xc_machine.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** xc_machine.c 22 Jun 2006 09:08:40 -0000 1.6 --- xc_machine.c 22 Nov 2007 10:17:52 -0000 1.7 *************** *** 1889,1893 **** addr = POP(sp); ! if (IS_CI_ADDR(*sp)) { GET_LONGLONG(d0, (stackword_t *)addr); } --- 1889,1893 ---- addr = POP(sp); ! if (IS_CI_ADDR(addr)) { GET_LONGLONG(d0, (stackword_t *)addr); } *************** *** 1938,1942 **** addr = POP(sp); ! if (IS_CI_ADDR(*sp)) { GET_FLOAT(d0, (stackword_t *)addr); } --- 1938,1942 ---- addr = POP(sp); ! if (IS_CI_ADDR(addr)) { GET_FLOAT(d0, (stackword_t *)addr); } *************** *** 1953,1957 **** addr = POP(sp); ! if (IS_CI_ADDR(*sp)) { GET_DOUBLE(d0, (stackword_t *)addr); } --- 1953,1957 ---- addr = POP(sp); ! if (IS_CI_ADDR(addr)) { GET_DOUBLE(d0, (stackword_t *)addr); } *************** *** 1969,1973 **** addr = POP(sp); ! if (IS_CI_ADDR(*sp)) { GET_LDOUBLE(d0, (stackword_t *)addr); } --- 1969,1973 ---- addr = POP(sp); ! if (IS_CI_ADDR(addr)) { GET_LDOUBLE(d0, (stackword_t *)addr); } *************** *** 1987,1991 **** addr = POP(sp); ! if (IS_CI_ADDR(*sp)) { GET_LONGLONG(d0, (stackword_t *)addr); } --- 1987,1991 ---- addr = POP(sp); ! if (IS_CI_ADDR(addr)) { GET_LONGLONG(d0, (stackword_t *)addr); } |