]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed the restriction that the size argument of drd_pre_mem_read_asciiz()
authorBart Van Assche <bvanassche@acm.org>
Mon, 26 Oct 2009 16:14:04 +0000 (16:14 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 26 Oct 2009 16:14:04 +0000 (16:14 +0000)
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

drd/drd_main.c

index 03b523edfa78fec1fab66cabc55c110299fc8dea..2a1a7153551e1b46e37e00f8d7b08cdb58f415cb 100644 (file)
@@ -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);