MITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog
authorTom Yu <tlyu@mit.edu>
Tue, 3 Apr 2007 19:23:52 +0000 (19:23 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 3 Apr 2007 19:23:52 +0000 (19:23 +0000)
commitf7f39b9dda8998390da542fb9bbc2be563c8a557
treeddc2bfdf6bb73d2b961a88f61f57d66449c41c55
parentfd6cef3500bd22b289be8c9c3561a11b87843f86
MITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog

Fix MITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog.

* src/lib/krb5/krb/get_in_tkt.c (krb5_klog_syslog): Use vsnprintf
if available.

Everything else: use precision fields on "%s" specifiers to truncate
logged strings, in case someone doesn't have vsnprintf.

ticket: new
target_version: 1.6.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19395 dc483132-0cff-0310-8789-dd5450dbe970
src/kadmin/server/kadm_rpc_svc.c
src/kadmin/server/misc.c
src/kadmin/server/misc.h
src/kadmin/server/ovsec_kadmd.c
src/kadmin/server/schpw.c
src/kadmin/server/server_stubs.c
src/kdc/do_tgs_req.c
src/kdc/kdc_util.c
src/lib/kadm5/logger.c