]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the buffer length test in NEEDSP() so that it does not
authortjr <tjr@FreeBSD.org>
Sun, 2 Nov 2003 23:20:24 +0000 (23:20 +0000)
committertjr <tjr@FreeBSD.org>
Sun, 2 Nov 2003 23:20:24 +0000 (23:20 +0000)
commit83375877b4b96929e9132ad10789d094de19422e
treeeccd2bbe1da2bd25065402a47af0f8e2e1ea763a
parent7c072fe20ea68fd4acd0ea5c656690529b57a7ea
Change the buffer length test in NEEDSP() so that it does not
subtract one unsigned number from another potentially smaller
one, leading to wraparound (and heap corruption, eventually).

PR: 58813
MFC after: 2 weeks
usr.bin/sed/process.c