Jelajahi Sumber

Merge pull request #13775 from ghalliday/issue24091

HPCC-24091 Fix potential core in archive/zip file plugin

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 tahun lalu
induk
melakukan
8ab54b1b8a
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      common/remote/hooks/libarchive/archive.cpp

+ 2 - 0
common/remote/hooks/libarchive/archive.cpp

@@ -173,6 +173,8 @@ public:
         // object and scan through until we find the matching file, in order to extract it.
         StringAttr container, option, relpath;
         splitArchivedFileName(_fullName, container, option, relpath);
+        if (!relpath)
+            relpath.set("");
         curPos = 0;
         lastPos = 0;
         curBuffSize = 0;