add check for overflow while doubling (very unlikely in practice, but still
authorespie <espie@openbsd.org>
Sat, 25 Apr 2015 15:33:47 +0000 (15:33 +0000)
committerespie <espie@openbsd.org>
Sat, 25 Apr 2015 15:33:47 +0000 (15:33 +0000)
commit0f2017b9a5fc3429d67d638b7b9b58ce646524f7
treecf7786193eded3e6a3fac3c55eeaf9009fdc1074
parentd1ca61581d41ca664ca2be81b4cc385710e166f6
add check for overflow while doubling (very unlikely in practice, but still
better style code). Problem noticed by deraadt@ in m4.

okay doug@ deraadt@
usr.bin/m4/gnum4.c
usr.bin/make/buf.c