]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ed(1): Prevent possible overflows during allocation.
authorpfg <pfg@FreeBSD.org>
Mon, 12 Dec 2016 03:46:40 +0000 (03:46 +0000)
committerpfg <pfg@FreeBSD.org>
Mon, 12 Dec 2016 03:46:40 +0000 (03:46 +0000)
commitb4359fc5ce028c9da6e22d5f190bcff1a69400b7
tree75c24979437345641f2cec7b44ff0381c748c570
parentd68a9833c64d4dbbc88304583dcd7666183ed813
ed(1): Prevent possible overflows during allocation.

Make sure the parameters used for malloc(3) can hold size_t sizes.
This should help ed(1) handle bigger data in the future.

MFC after: 2 weeks
bin/ed/ed.h
bin/ed/glbl.c
bin/ed/main.c