diff options
author | 2011-07-17 19:39:21 +0000 | |
---|---|---|
committer | 2011-07-17 19:39:21 +0000 | |
commit | f7ac433e67dad1de38f708bd699cee284ad684d2 (patch) | |
tree | 1194bc7a09a4773cd4d857e587da3641f0b9a8f6 /sys/kern/subr_hibernate.c | |
parent | typo in usage summary (diff) | |
download | wireguard-openbsd-f7ac433e67dad1de38f708bd699cee284ad684d2.tar.xz wireguard-openbsd-f7ac433e67dad1de38f708bd699cee284ad684d2.zip |
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 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions