diff options
author | aschrijver <aschrijver@cvs.openbsd.org> | 2011-07-17 19:39:22 +0000 |
---|---|---|
committer | aschrijver <aschrijver@cvs.openbsd.org> | 2011-07-17 19:39:22 +0000 |
commit | d923b4b88f795933bd6165856e848abc5bbcd161 (patch) | |
tree | 93cffe4649feb2289d69427a401acef489c916a9 /usr.bin/id | |
parent | f41811c1c5869cc73387febc80fcda3fa01eefea (diff) |
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@
Diffstat (limited to 'usr.bin/id')
0 files changed, 0 insertions, 0 deletions