]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
orig_size can now legitimately be zero, if the first insn in a bb one
authorJulian Seward <jseward@acm.org>
Wed, 15 Dec 2004 18:42:30 +0000 (18:42 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 15 Dec 2004 18:42:30 +0000 (18:42 +0000)
that Vex failed to decode.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3204

coregrind/vg_translate.c

index 18be7ab5c067544041c3a0f75265f77cf96157bd..2ce3d5128712f9501d84cff0947f5e734472dfd0 100644 (file)
@@ -454,7 +454,7 @@ Bool VG_(translate) ( ThreadId tid, Addr orig_addr,
 
    /* Copy data at trans_addr into the translation cache. */
    /* Since the .orig_size and .trans_size fields are UShort, be paranoid. */
-   vg_assert(orig_size > 0 && orig_size < 65536);
+   vg_assert(orig_size >= 0 && orig_size < 65536);
    vg_assert(tmpbuf_used > 0 && tmpbuf_used < 65536);
 
    // If debugging, don't do anything with the translated block;  we