mit-krb5-1.12_uninitialized.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/src/slave/kprop.c
  2. +++ b/src/slave/kprop.c
  3. @@ -91,7 +91,7 @@ main(argc, argv)
  4. int argc;
  5. char **argv;
  6. {
  7. - int fd, database_fd, database_size;
  8. + int fd = -1, database_fd, database_size;
  9. krb5_error_code retval;
  10. krb5_context context;
  11. krb5_creds *my_creds;
  12. --- a/src/kadmin/ktutil/ktutil_funcs.c
  13. +++ b/src/kadmin/ktutil/ktutil_funcs.c
  14. @@ -64,7 +64,7 @@
  15. krb5_kt_list *list;
  16. int idx;
  17. {
  18. - krb5_kt_list lp, prev;
  19. + krb5_kt_list lp, prev = NULL;
  20. int i;
  21. for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
  22. --- a/src/lib/kadm5/alt_prof.c
  23. +++ b/src/lib/kadm5/alt_prof.c
  24. @@ -164,7 +164,7 @@
  25. char **values;
  26. char *valp;
  27. int idx;
  28. - krb5_boolean val;
  29. + krb5_boolean val = 0;
  30. kret = krb5_aprof_getvals (acontext, hierarchy, &values);
  31. if (kret)
  32. --- a/src/util/profile/prof_init.c
  33. +++ b/src/util/profile/prof_init.c
  34. @@ -255,7 +255,7 @@ copy_vtable_profile(profile_t profile, profile_t *ret_new_profile)
  35. {
  36. errcode_t err;
  37. void *cbdata;
  38. - profile_t new_profile;
  39. + profile_t new_profile = NULL;
  40. *ret_new_profile = NULL;
  41. --- a/src/tests/asn.1/trval.c 2013-04-12 12:51:36.000000000 -0500
  42. +++ b/src/tests/asn.1/trval.c 2013-05-24 04:31:14.077036380 -0500
  43. @@ -404,7 +404,7 @@
  44. {
  45. int n;
  46. int r = 0;
  47. - int rlen2;
  48. + int rlen2 = 0;
  49. int rlent;
  50. int save_appl;