the bitrig master branch has been updated by natano with 2 new commits: commit a355e613ee35a4c678f2a059781682d6998d9a01 diff: https://github.com/bitrig/bitrig/commit/a355e61 author: Martin Natano <[email protected]> date: Fri Apr 17 08:22:05 2015 +0200
Introduce the acalloc() and aresizearray() functions. These functions are used to allocate and resize arrays, including the required overflow checks. The same reasoning as for realloc vs. reallocarray applies. ok pedro@ M bin/ksh/alloc.c M bin/ksh/c_sh.c M bin/ksh/edit.c M bin/ksh/exec.c M bin/ksh/expand.h M bin/ksh/history.c M bin/ksh/lex.c M bin/ksh/main.c M bin/ksh/proto.h M bin/ksh/sh.h M bin/ksh/shf.c M bin/ksh/syn.c M bin/ksh/table.c M bin/ksh/tree.c commit 6b917fe675fc8a81d35ae383675da0ec0161965c diff: https://github.com/bitrig/bitrig/commit/6b917fe author: Martin Natano <[email protected]> date: Thu Apr 16 22:35:49 2015 +0200 Add overflow checks to alloc() and aresize(); ok pedro@ M bin/ksh/alloc.c
