opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

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 ---
      7  list.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/list.c b/list.c
     11 index 15e0011..5de41e5 100644
     12 --- a/list.c
     13 +++ b/list.c
     14 @@ -97,7 +97,7 @@ int list_files(__G)    /* return PK-type error code */
     15  {
     16      int do_this_file=FALSE, cfactor, error, error_in_archive=PK_COOL;
     17  #ifndef WINDLL
     18 -    char sgn, cfactorstr[10];
     19 +    char sgn, cfactorstr[12];
     20      int longhdr=(uO.vflag>1);
     21  #endif
     22      int date_format;
     23 -- 
     24 2.20.1
     25