From 8a94ac25d597e439b05b38c013e4cb2d1169c681 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 1 Aug 2019 16:16:44 -0700 Subject: [PATCH] Sanity check on prof dump buffer size. --- src/prof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prof.c b/src/prof.c index fcf9c6f6..13334cb4 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; }