diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-27 09:59:45 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-27 09:59:45 +0200 |
| commit | 7ea50158ad9a79601cdc089d2d1cb36d424e0958 (patch) | |
| tree | 0dcc81ff645a446921017e007d7ff5cc8e43bb9a | |
| parent | cb39d7d08b12261f1c1fe7c12feb5c392346d4ae (diff) | |
| parent | af548ee8e9f9238271ee36d48aac2b01d4e765c7 (diff) | |
Merge pull request #66485 from nikitalita/fix-file-access-zip
Prevent loading a zip with `--main-pack` from causing a stack overflow
| -rw-r--r-- | core/io/file_access_zip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 2af6f370cf..72503851c1 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -337,7 +337,7 @@ bool FileAccessZip::file_exists(const String &p_name) { } FileAccessZip::FileAccessZip(const String &p_path, const PackedData::PackedFile &p_file) { - _open(p_path, FileAccess::READ); + open_internal(p_path, FileAccess::READ); } FileAccessZip::~FileAccessZip() { |