You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is part of the specifications, because S3M seems to be a very loosely-defined format.
When a pattern is completely empty, OpenMPT likes to have a pattern_ptr that is simply 0 (instead of pointing at an array of 64 empty rows). At the moment, the decoder thinks that the para pointer of value 0 is correct, and it starts reading bytes at the start of the file. I'm using Python, and I would expect an exception or something when trying to read data from that pattern.
I don't know if this is part of the specifications, because S3M seems to be a very loosely-defined format.
When a pattern is completely empty, OpenMPT likes to have a pattern_ptr that is simply 0 (instead of pointing at an array of 64 empty rows). At the moment, the decoder thinks that the para pointer of value 0 is correct, and it starts reading bytes at the start of the file. I'm using Python, and I would expect an exception or something when trying to read data from that pattern.
kaitai_struct_formats/media/tracker_modules/s3m.ksy
Line 195 in b90cf29
I've attached a file that shows this issue:
empty_pattern.s3m.zip
For more context, I'm creating a Python script that converts S3M files into a custom format so that it can be played on the Game Boy Advance: https://github.com/AntonioND/gbt-player/blob/ef3ff9f5474e170b0b2fdf765c337e398197b972/gba/s3m2gbt/s3m2gbt.py
The text was updated successfully, but these errors were encountered: