logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0007-Increase-size-of-cfactorstr-array-to-avoid-buffer-ov.patch (682B)


  1. From 5ba63850818457aa3147ab40adc376ff7dc0f1c9 Mon Sep 17 00:00:00 2001
  2. From: "Steven M. Schweda" <sms@antinode.info>
  3. Date: Sat, 15 Jun 2019 18:13:11 -0700
  4. Subject: [PATCH] Increase size of cfactorstr array to avoid buffer overflow
  5. ---
  6. list.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/list.c b/list.c
  9. index 15e0011..5de41e5 100644
  10. --- a/list.c
  11. +++ b/list.c
  12. @@ -97,7 +97,7 @@ int list_files(__G) /* return PK-type error code */
  13. {
  14. int do_this_file=FALSE, cfactor, error, error_in_archive=PK_COOL;
  15. #ifndef WINDLL
  16. - char sgn, cfactorstr[10];
  17. + char sgn, cfactorstr[12];
  18. int longhdr=(uO.vflag>1);
  19. #endif
  20. int date_format;
  21. --
  22. 2.20.1