go-sox icon indicating copy to clipboard operation
go-sox copied to clipboard

segmentation violation after received incorrect file

Open akaroot opened this issue 7 years ago • 0 comments

Hi! I got an error fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x7ff4e39978c0 pc=0x7ff4e39978c0] when I gave go-sox libarry non-audio file. When I send incorrect file for the fist time it returns "formats: no handler for file extension `jpg'" but for the second time it's crashed with error https://gist.github.com/akaroot/bd040d722bd2fd2bb5e42c80bb35243c#file-error-log

After fisrt incorrect file I can send audio files and averythind works, but on second image file I always got crashed.

Code example: https://gist.github.com/akaroot/bd040d722bd2fd2bb5e42c80bb35243c#file-main-go GO version: 1.9.4, 1.10 OS: Ubuntu 16.04 x64

akaroot avatar Feb 21 '18 11:02 akaroot