CVSROOT:        /cvs
Module name:    src
Changes by:     aschrij...@cvs.openbsd.org      2011/07/17 13:39:21

Modified files:
        usr.bin/grep   : util.c 

Log message:
Fix an integer overflow for very long lines by replacing the datatype of 2 
offsets from int to regoff_t.

Bail if the given size_t line length doesn't fit into the new regoff_t.

"I don't think you will ever be able to get a string longer than
SSIZE_MAX into memory, but that looks good." tedu@

"Agreed" otto@

regoff_t suggested by otto@

Reply via email to