shithub: mc

Download patch

ref: a805b85c6836bb909bd98e63ad2c05a58c814450
parent: 9430b39f7841e539a6ed8261a4eddb6eeb082e06
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 23 15:28:54 EST 2017

zero out the data pointer in our big cache.

--- a/lib/std/alloc.myr
+++ b/lib/std/alloc.myr
@@ -6,6 +6,7 @@
 use "types"
 use "units"
 use "bytealloc"
+use "backtrace"
 use "memops"
 
 /*
--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -193,6 +193,7 @@
 			cache[i].p = ((p : intptr) + (sz : intptr) : byte#)
 		else
 			cache[i].sz = 0
+			cache[i].p = (0 : byte#)
 		;;
 		break
 	;;