]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Audit two buffer sizes.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 13 Nov 2014 22:45:58 +0000 (22:45 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 13 Nov 2014 22:45:58 +0000 (22:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14720

callgrind/main.c
callgrind/sim.c

index be43fe60235a5d8dcd320beabed7088751fab684..158f02185f8d6e6f094bf0f5a79eda29a00a02f0 100644 (file)
@@ -1776,7 +1776,7 @@ static
 void branchsim_printstat(int l1, int l2, int l3)
 {
     static HChar buf1[128], buf2[128], buf3[128];
-    static HChar fmt[128];
+    static HChar fmt[128];    // large enough
     FullCost total;
     ULong Bc_total_b, Bc_total_mp, Bi_total_b, Bi_total_mp;
     ULong B_total_b, B_total_mp;
index ae9ccc1104a9d6e2ba1dfb9b259eaa9cd5e5d8da..805cda9b5b4764e4d78c91bd4963f4d2a1575e72 100644 (file)
@@ -76,7 +76,7 @@ typedef struct {
    int          line_size_bits;
    int          tag_shift;
    UWord        tag_mask;
-   HChar        desc_line[128];
+   HChar        desc_line[128];    // large enough
    UWord*       tags;
 
   /* for cache use */