Avoid use of unchecked sprintf in libraries. Use asprintf if the
authorKen Raeburn <raeburn@mit.edu>
Thu, 12 Jul 2007 23:33:25 +0000 (23:33 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 12 Jul 2007 23:33:25 +0000 (23:33 +0000)
commit52571d9201c7bef4dc5ebdf14a41db1f7baddc8e
tree9f108e05e8881ea19954b4959fdca96d47daa615
parent57913ccc175061dd41e98914d50eda56dd9685c0
Avoid use of unchecked sprintf in libraries.  Use asprintf if the
output buffer is allocated according to the size of data to be
written, or snprintf otherwise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19703 dc483132-0cff-0310-8789-dd5450dbe970
37 files changed:
src/lib/gssapi/generic/disp_major_status.c
src/lib/gssapi/mechglue/oid_ops.c
src/lib/kadm5/alt_prof.c
src/lib/kadm5/chpass_util.c
src/lib/kadm5/clnt/client_init.c
src/lib/kadm5/logger.c
src/lib/kadm5/srv/server_kdb.c
src/lib/kdb/kdb5.c
src/lib/krb4/CCache-glue.c
src/lib/krb4/RealmsConfig-glue.c
src/lib/krb4/klog.c
src/lib/krb4/password_to_key.c
src/lib/krb4/stime.c
src/lib/krb4/tkt_string.c
src/lib/krb5/asn.1/asn1_encode.c
src/lib/krb5/ccache/ccapi/stdcc.c
src/lib/krb5/ccache/ser_cc.c
src/lib/krb5/ccache/t_cc.c
src/lib/krb5/keytab/kt_file.c
src/lib/krb5/krb/gic_pwd.c
src/lib/krb5/krb/preauth2.c
src/lib/krb5/krb/srv_rcache.c
src/lib/krb5/krb/str_conv.c
src/lib/krb5/krb/t_ser.c
src/lib/krb5/os/ccdefname.c
src/lib/krb5/os/dnssrv.c
src/lib/krb5/os/gen_rname.c
src/lib/krb5/os/hst_realm.c
src/lib/krb5/os/ktdefname.c
src/lib/krb5/os/locate_kdc.c
src/lib/krb5/os/sendto_kdc.c
src/lib/krb5/rcache/rc_io.c
src/lib/krb5/rcache/ser_rc.c
src/lib/rpc/clnt_perror.c
src/util/profile/prof_file.c
src/util/support/errors.c
src/util/support/plugins.c