This might have also been related to using an outdated (2014) libxmp while trying this though, Have not yet updated that to see if it's reproducable in it, but there's still the possibility it's OA's fault here
While looking at S_XMP_CodecOpenStream I noticed that FS_ReadFile is called with an invalid buffer.
This could likely be the cause of a crash (or something worse).
To reproduce:
This might have also been related to using an outdated (2014) libxmp while trying this though, Have not yet updated that to see if it's reproducable in it, but there's still the possibility it's OA's fault here