]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix rc4 string-to-key on unterminated inputs
authorGreg Hudson <ghudson@mit.edu>
Fri, 24 May 2013 17:16:52 +0000 (13:16 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 27 May 2013 16:42:59 +0000 (12:42 -0400)
commit1e123231769fe640f446442cb210664d280ccbac
tree3835a27f5134b6c41d2863af4fb2858b46c82117
parentd211001ba17fddfb952beb00118dc5c7e598355e
Fix rc4 string-to-key on unterminated inputs

The internal UTF-8 to UCS-2 conversion functions did not properly
respect their length arguments, instead assuming that the input string
is terminated with a zero bytes.  As a result,
krb5int_arcfour_string_to_key could fail on unterminated inputs.  Fix
the underlying support functions to read their inputs only up to the
specified length.

ticket: 7643 (new)
src/util/support/utf8_conv.c