diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-10-21 16:36:51 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-10-21 16:36:51 +0000 |
commit | 809582acb5236b46b19503a913a59da3b5290ad8 (patch) | |
tree | 2b4919e11ce707e14af24d84eb09c4ba4cbd8d82 /usr.bin/gencat | |
parent | bd0e255175db6f2385dd0bedd94b7273e174c242 (diff) |
In the case where len is not a multiple of sizeof(RC4_CHUNK) the RC4 code
will end up doing a read and write of up to 7 bytes beyond the specified
length. This is effectively a non-issue since we read and write back the
same data and due to alignment it is within a page boundary.
Regardless, avoid this by removing the "special" handling for the remaining
length and allow the standard (non-chunk) code to process the remaining
bytes, which does not result in overrun.
Reported by Pascal Cuoq <cuoq at trust-in-soft.com> - thanks!
ok beck@ miod@
Diffstat (limited to 'usr.bin/gencat')
0 files changed, 0 insertions, 0 deletions