load_one_suppressions_file(): Make sure to finish reading
up-to-and-including the '}' when the number of callers is >=
VG_N_SUPP_CALLERS.  (Jeffrey Stedfast)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1728 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_errcontext.c b/coregrind/vg_errcontext.c
index 8b953d7..edc5594 100644
--- a/coregrind/vg_errcontext.c
+++ b/coregrind/vg_errcontext.c
@@ -743,6 +743,14 @@
             goto syntax_error;
       }
 
+      /* make sure to grab the '}' if the num callers is >=
+         VG_N_SUPP_CALLERS */
+      if (!VG_STREQ(buf, "}")) {
+         do {
+           eof = VG_(get_line) ( fd, buf, N_BUF );
+        } while (!eof && !VG_STREQ(buf, "}"));
+      }
+
       supp->next = vg_suppressions;
       vg_suppressions = supp;
    }