ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

Music_PlayOgg causes SIGSEGV

Open Cheesse opened this issue 1 year ago • 1 comments

Apparently the size of OggState + VorbisState allocated on the stack is just too big. The total amount allocated for this function is apparently about 156 kB.

I am running Gentoo Linux with musl libc on an x64 system.

I fixed it by reducing VORBIS_MAX_BLOCK_SIZE in Vorbis.h from 8192 to 4096.

Probably just a quirk having to do with musl. Thoughts?

Cheesse avatar Mar 14 '23 23:03 Cheesse