]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Read suppression files in 256 byte chunks, not 64 byte chunks.
authorJulian Seward <jseward@acm.org>
Thu, 23 Oct 2008 10:15:37 +0000 (10:15 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 23 Oct 2008 10:15:37 +0000 (10:15 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8698

coregrind/m_errormgr.c

index 0e0f31d99c6b854791a235d22e298d43409c0a13..218a792c7aa68e4662e0f84a954b17af6a1504ba 100644 (file)
@@ -848,21 +848,21 @@ void VG_(show_error_counts_as_XML) ( void )
 static Int get_char ( Int fd, Char* out_buf )
 {
    Int r;
-   static Char buf[64];
+   static Char buf[256];
    static Int buf_size = 0;
    static Int buf_used = 0;
-   vg_assert(buf_size >= 0 && buf_size <= 64);
+   vg_assert(buf_size >= 0 && buf_size <= 256);
    vg_assert(buf_used >= 0 && buf_used <= buf_size);
    if (buf_used == buf_size) {
-      r = VG_(read)(fd, buf, 64);
+      r = VG_(read)(fd, buf, 256);
       if (r < 0) return r; /* read failed */
-      vg_assert(r >= 0 && r <= 64);
+      vg_assert(r >= 0 && r <= 256);
       buf_size = r;
       buf_used = 0;
    }
    if (buf_size == 0)
      return 0; /* eof */
-   vg_assert(buf_size >= 0 && buf_size <= 64);
+   vg_assert(buf_size >= 0 && buf_size <= 256);
    vg_assert(buf_used >= 0 && buf_used < buf_size);
    *out_buf = buf[buf_used];
    buf_used++;