From: Julian Seward Date: Thu, 23 Oct 2008 10:15:37 +0000 (+0000) Subject: Read suppression files in 256 byte chunks, not 64 byte chunks. X-Git-Tag: svn/VALGRIND_3_4_0~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94b473cf2b981a2f3ee0dfdfe35661efabbb36fa;p=thirdparty%2Fvalgrind.git Read suppression files in 256 byte chunks, not 64 byte chunks. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8698 --- diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c index 0e0f31d99c..218a792c7a 100644 --- a/coregrind/m_errormgr.c +++ b/coregrind/m_errormgr.c @@ -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++;