OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Ingo Schwarze (schwarzecvs.openbsd.org)
Date: Mon Dec 20 2010 - 19:22:00 CST


CVSROOT: /cvs
Module name: src
Changes by: schwarzecvs.openbsd.org 2010/12/20 18:22:00

Modified files:
        usr.bin/mandoc : main.c

Log message:
Sane behaviour for the growing of very small buffers:
Always grow at least to the minimum requested size.
Before this, a buffer of 1 byte was grown to 2 bytes,
which was too small and sometimes caused segfaults.
ok kristaps