From: Julian Seward Date: Wed, 15 Dec 2004 18:42:30 +0000 (+0000) Subject: orig_size can now legitimately be zero, if the first insn in a bb one X-Git-Tag: svn/VALGRIND_3_0_0~1114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352d03a076d592d712eec10306371a51d102bcb6;p=thirdparty%2Fvalgrind.git orig_size can now legitimately be zero, if the first insn in a bb one that Vex failed to decode. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3204 --- diff --git a/coregrind/vg_translate.c b/coregrind/vg_translate.c index 18be7ab5c0..2ce3d51287 100644 --- a/coregrind/vg_translate.c +++ b/coregrind/vg_translate.c @@ -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