b1db1932ef
The overload taking a path opens the file and then mmap its contents. This can cause bus errors when another process truncates the file while we are trying to read it. Instead just read the first 1024 bytes, which should be enough for identify_magic to do its work. |
||
---|---|---|
.. | ||
Interpreter | ||
MetaProcessor | ||
UserInterface | ||
Utils | ||
CMakeLists.txt |