enowars / enowars7-service-granulizer

Vulnerable synthesizer service
MIT License
0 stars 1 forks source link

Granulize function valgrind invalid write #48

Closed lucajungnickel closed 1 year ago

lucajungnickel commented 1 year ago

abc.pcm Input: i��i��

15:40:44 TRACE granular.c:121: Starting granulize algorithm with params: bytes_per_sample 1, samplerate: -1 15:40:44 TRACE granular.c:140: Grains_len now 0 15:40:44 TRACE granular.c:141: Num grains now 10 ==8095== Invalid write of size 8 ==8095== at 0x483F849: memmove (vg_replace_strmem.c:1270) ==8095== by 0x10CC53: granulize (granular.c:202) ==8095== by 0x10B757: granulize_call (main.c:347) ==8095== by 0x10C447: main (main.c:656) ==8095== Address 0x4a497b8 is 8 bytes inside a block of size 12 alloc'd ==8095== at 0x483AB65: calloc (vg_replace_malloc.c:760) ==8095== by 0x10CB6E: granulize (granular.c:180) ==8095== by 0x10B757: granulize_call (main.c:347) ==8095== by 0x10C447: main (main.c:656) ==8095==

Reason: file too short?