]> granicus.if.org Git - libevent/commitdiff
Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from()
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 16:08:50 +0000 (12:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 16:08:50 +0000 (12:08 -0400)
The call was safe, but coverity couldn't tell. CID 1239294.

test/regress_buffer.c

index 8bf49aea5bd3fdf8660cfcb030c6a6532176b6d5..c1f337bf6fd0cc2641272027b67b9b3b23a44575 100644 (file)
@@ -2097,7 +2097,7 @@ test_evbuffer_copyout(void *dummy)
            "When the rich Allobrogenses never kept amanuenses, "
            "And our only plots were piled in lakes at Berne.";
        /* -- Kipling, "In The Neolithic Age" */
-       char tmp[256];
+       char tmp[1024];
        struct evbuffer_ptr ptr;
        struct evbuffer *buf;