memzap

replay memory writes
git clone git://git.2f30.org/memzap
Log | Files | Refs | README | LICENSE

commit e7de35a886d785e2290cbd749f5a108eb29abcf8
parent 699829ae850511aae52921377deac8d0068c3c62
Author: sin <sin@2f30.org>
Date:   Wed,  6 Mar 2013 17:12:43 +0000

mem: Bomb out if two regions do not have the same size

This is almost surely a bug in the code so don't just return
NULL, die!

Diffstat:
Mmem.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mem.c b/mem.c @@ -151,7 +151,7 @@ diff_mem_region(struct mem_region *dst, /* We can only diff regions of the same size */ if (dst->rsize != src->rsize) - return NULL; + errx(1, "dst->rsize != src->rsize"); for (i = 0; i < src->nblocks; i++) { found = false;