* Change the buffer lenght test in NEEDSP() so that it does not
authorDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 4 Nov 2003 15:44:36 +0000 (15:44 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 4 Nov 2003 15:44:36 +0000 (15:44 +0000)
commitf66dfe623748624dcfd11dd222dfe3f937b45fb3
treed466c13bab408fe56416a516ccee74258d857011
parent5b4dd598f4786017d0d1511a7036f491641cd3ce
* Change the buffer lenght test in NEEDSP() so that it does not
subtract one unsigned number from another potentially smaller
one, leading to wraparound (and heap corruption, eventually).

Obtained from: The FreeBSD project
usr.bin/sed/process.c