3.4.0-fortify.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. src/bin/ccenergy/get_params.cc | 2 +-
  2. src/bin/cclambda/get_params.cc | 2 +-
  3. src/bin/ccresponse/get_params.cc | 2 +-
  4. src/bin/ccsort/get_params.cc | 2 +-
  5. 4 files changed, 4 insertions(+), 4 deletions(-)
  6. diff --git a/src/bin/ccenergy/get_params.cc b/src/bin/ccenergy/get_params.cc
  7. index 53f4c83..a2fa932 100644
  8. --- a/src/bin/ccenergy/get_params.cc
  9. +++ b/src/bin/ccenergy/get_params.cc
  10. @@ -193,7 +193,7 @@ void get_params()
  11. }
  12. }
  13. else if(params.local) {
  14. - local.weakp = (char *) malloc(4 * sizeof(char));
  15. + local.weakp = (char *) malloc(5 * sizeof(char));
  16. sprintf(local.weakp, "%s", "NONE");
  17. }
  18. diff --git a/src/bin/cclambda/get_params.cc b/src/bin/cclambda/get_params.cc
  19. index 4a9d2c8..8a2ae17 100644
  20. --- a/src/bin/cclambda/get_params.cc
  21. +++ b/src/bin/cclambda/get_params.cc
  22. @@ -150,7 +150,7 @@ void get_params(void)
  23. }
  24. }
  25. else if(params.local) {
  26. - local.weakp = (char *) malloc(4 * sizeof(char));
  27. + local.weakp = (char *) malloc(5 * sizeof(char));
  28. sprintf(local.weakp, "%s", "NONE");
  29. }
  30. diff --git a/src/bin/ccresponse/get_params.cc b/src/bin/ccresponse/get_params.cc
  31. index a96db13..5c40aa0 100644
  32. --- a/src/bin/ccresponse/get_params.cc
  33. +++ b/src/bin/ccresponse/get_params.cc
  34. @@ -207,7 +207,7 @@ void get_params()
  35. }
  36. }
  37. else if(params.local) {
  38. - local.weakp = (char *) malloc(4 * sizeof(char));
  39. + local.weakp = (char *) malloc(5 * sizeof(char));
  40. sprintf(local.weakp, "%s", "NONE");
  41. }
  42. diff --git a/src/bin/ccsort/get_params.cc b/src/bin/ccsort/get_params.cc
  43. index ad7f0c3..6ee1993 100644
  44. --- a/src/bin/ccsort/get_params.cc
  45. +++ b/src/bin/ccsort/get_params.cc
  46. @@ -120,7 +120,7 @@ void get_params()
  47. }
  48. }
  49. else if(params.local) {
  50. - local.weakp = (char *) malloc(4 * sizeof(char));
  51. + local.weakp = (char *) malloc(5 * sizeof(char));
  52. sprintf(local.weakp, "%s", "NONE");
  53. }