From: Bart Van Assche Date: Mon, 26 Oct 2009 16:14:04 +0000 (+0000) Subject: Removed the restriction that the size argument of drd_pre_mem_read_asciiz() X-Git-Tag: svn/VALGRIND_3_6_0~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d9922bc863b00c66253a8d220b1469d43de924f;p=thirdparty%2Fvalgrind.git Removed the restriction that the size argument of drd_pre_mem_read_asciiz() should be less than 4096 bytes. This function is called a.o. for the path argument of the open() system call. This path can be longer than 4096 bytes. Should fix bug #211941. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10905 --- diff --git a/drd/drd_main.c b/drd/drd_main.c index 03b523edfa..2a1a715355 100644 --- a/drd/drd_main.c +++ b/drd/drd_main.c @@ -260,8 +260,6 @@ static void drd_pre_mem_read_asciiz(const CorePart part, p++; size++; } - // To do: find out what a reasonable upper limit on 'size' is. - tl_assert(size < 4096); if (size > 0) { DRD_(trace_load)(a, size);