A flaw exists in the PSP file format parser. A double-free condition, which occurs when a program attempts to free the same memory location twice, happens in the `read layer block()` function when processing a specially crafted PSP file. This can lead to memory corruption, potentially resulting in a denial of service or arbitrary code execution.