]> arthur.barton.de Git - bup.git/commit
bupsplit.c: remove extra-large stack-allocated array from selftest().
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 31 Oct 2011 21:49:55 +0000 (17:49 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 31 Oct 2011 21:50:02 +0000 (17:50 -0400)
commit840f15b66b7b471d28dce56b2159b1dd45f39244
treed27dba93684f68de0a4471afde6388b60004dd64
parentff8576a37ba2cb8da0be938adef8e25bb5d85eff
bupsplit.c: remove extra-large stack-allocated array from selftest().

In some rare cases involving userspace threads (where you're running the
selftest function for some reason?) this could cause stack overflow or
excess memory usage.  Let's just do it with plain malloc().

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/bupsplit.c