]> git.tuebingen.mpg.de Git - paraslash.git/commit
rc4: Round up output buffer size.
authorAndre Noll <maan@systemlinux.org>
Fri, 14 Sep 2007 09:16:27 +0000 (11:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 14 Sep 2007 09:16:27 +0000 (11:16 +0200)
commite5a4d6bb1e2ca7f81bc99b5d543cd5a0e5ffc693
treef76f2bf30bfbb35d4be710b7f45898c07c319223
parentd6dcce32b8e844b7a2ffeb5ff2e519e89fb7be3f
rc4: Round up output buffer size.

valgrind indicated that RC4() writes beyond the end of the output buffer which
was was of the same size than the input buffer. Workaround this by rounding up
the output buffer size to a multiple of 8.
net.c
para.h