summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2019-08-01 23:16:44 (GMT)
committerQi Wang <interwq@gmail.com>2019-08-02 00:55:45 (GMT)
commit8a94ac25d597e439b05b38c013e4cb2d1169c681 (patch)
treebcb7a72ac66ef364145dcd1b4daeaf959d53146f
parent82b8aaaeb68ccb65ca52532f4806a43fbdb26b7a (diff)
downloadjemalloc-8a94ac25d597e439b05b38c013e4cb2d1169c681.zip
jemalloc-8a94ac25d597e439b05b38c013e4cb2d1169c681.tar.gz
jemalloc-8a94ac25d597e439b05b38c013e4cb2d1169c681.tar.bz2
Sanity check on prof dump buffer size.
-rw-r--r--src/prof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prof.c b/src/prof.c
index fcf9c6f..13334cb 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -1303,6 +1303,7 @@ prof_dump_write(bool propagate_err, const char *s) {
prof_dump_buf_end += n;
i += n;
}
+ assert(i == slen);
return false;
}