mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Added an extra sanity check.
This commit is contained in:
parent
81a3cbac45
commit
e5cc77f22d
@ -28,6 +28,7 @@ std::unique_ptr<Catalogue> StaticAnalyser::Acorn::GetDFSCatalogue(const std::sha
|
||||
|
||||
uint8_t final_file_offset = details->data[5];
|
||||
if(final_file_offset&7) return nullptr;
|
||||
if(final_file_offset < 8) return nullptr;
|
||||
|
||||
char disk_name[13];
|
||||
snprintf(disk_name, 13, "%.8s%.4s", &names->data[0], &details->data[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user