]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add various bound checks 626/head
authorMartin Kittel <martin.kittel@sap.com>
Thu, 6 Apr 2017 19:03:23 +0000 (21:03 +0200)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Apr 2017 17:30:32 +0000 (13:30 -0400)
commit277f9531745c45f14cce729b477e46219334d613
tree32e73f23aefa2369429850c68cb2aae3b690efc4
parent9bf1be99a76ca1033b95c791313dbc414389c831
Add various bound checks

Add bounds checks where Coverity otherwise reports a defect.  Most of
these checks are unlikely to be triggered in practice (Unicode regexps
are unused, and the caller of gss_krb5int_make_seal_token_v3 won't
have a plaintext object larger than half of the address space).  The
checks in dump.c could prevent memory access errors resulting from a
malformed dump file.

[ghudson@mit.edu: rewrote commit message]

ticket: 8578 (new)
src/kadmin/dbutil/dump.c
src/lib/gssapi/krb5/k5sealv3.c
src/lib/kdb/kdb_default.c
src/lib/krb5/unicode/ure/ure.c