diff options
| author | 2023-09-21 09:21:08 -0400 | |
|---|---|---|
| committer | 2023-09-21 09:21:08 -0400 | |
| commit | 2ffea42ec87b74b19f6e28f9ac96368a4e230f47 (patch) | |
| tree | 09d0cc0329f191fa667b787bf3b9648ffc444837 | |
| parent | Merge pull request #11551 from t895/allow-save-imports-always (diff) | |
| parent | pfs: Fix reading filenames past the buffer end (diff) | |
| download | yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.gz yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.xz yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.zip | |
Merge pull request #11553 from rkfg/pfs-fix
pfs: Fix reading filenames past the buffer end
| -rw-r--r-- | src/core/file_sys/partition_filesystem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp index 2527ae606..2422cb51b 100644 --- a/src/core/file_sys/partition_filesystem.cpp +++ b/src/core/file_sys/partition_filesystem.cpp | |||
| @@ -47,6 +47,7 @@ PartitionFilesystem::PartitionFilesystem(VirtualFile file) { | |||
| 47 | // Actually read in now... | 47 | // Actually read in now... |
| 48 | std::vector<u8> file_data = file->ReadBytes(metadata_size); | 48 | std::vector<u8> file_data = file->ReadBytes(metadata_size); |
| 49 | const std::size_t total_size = file_data.size(); | 49 | const std::size_t total_size = file_data.size(); |
| 50 | file_data.push_back(0); | ||
| 50 | 51 | ||
| 51 | if (total_size != metadata_size) { | 52 | if (total_size != metadata_size) { |
| 52 | status = Loader::ResultStatus::ErrorIncorrectPFSFileSize; | 53 | status = Loader::ResultStatus::ErrorIncorrectPFSFileSize; |