libxmp / xmp-cli

Command-line mod player using libxmp
GNU General Public License v2.0
75 stars 22 forks source link

Fix out-of-bounds read of mod->xxs, constify xmp_module_info pointers. #41

Closed AliceLR closed 3 years ago

AliceLR commented 3 years ago

Fixes out-of-bounds reads of the libxmp samples array reported by @debrouxl here: https://github.com/libxmp/libxmp/pull/383

Also constifies most xmp_module_info pointers since the functions that use them are mostly for info reporting and have no business modifying its contents directly.