|
From: <sv...@va...> - 2014-11-13 22:46:05
|
Author: florian
Date: Thu Nov 13 22:45:58 2014
New Revision: 14720
Log:
Audit two buffer sizes.
Modified:
trunk/callgrind/main.c
trunk/callgrind/sim.c
Modified: trunk/callgrind/main.c
==============================================================================
--- trunk/callgrind/main.c (original)
+++ trunk/callgrind/main.c Thu Nov 13 22:45:58 2014
@@ -1776,7 +1776,7 @@
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;
Modified: trunk/callgrind/sim.c
==============================================================================
--- trunk/callgrind/sim.c (original)
+++ trunk/callgrind/sim.c Thu Nov 13 22:45:58 2014
@@ -76,7 +76,7 @@
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 */
|