giszo/zeppelin

Unhandled exception in case of invalid mp3 file

Closed this issue · 1 comments

susu commented

Version (master): ba8deb5

If there is an invalid mp3 file (e.g. it has zero length), it will abort() during scan.
Backtrace:

#0  0x00007f2ab7f2c389 in raise () from /usr/lib/libc.so.6
#1  0x00007f2ab7f2d788 in abort () from /usr/lib/libc.so.6
#2  0x00007f2ab8a33625 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#3  0x00007f2ab8a31786 in ?? () from /usr/lib/libstdc++.so.6
#4  0x00007f2ab8a317b3 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0x00007f2ab8a319f2 in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x000000000050608d in library::SqliteStorage::setFileMetadata (this=0x7fff400c59b0, file=...) at src/library/sqlitestorage.cpp:443
#7  0x00000000005019d4 in library::MetaParser::run (this=0x25ac110) at src/library/metaparser.cpp:56
#8  0x0000000000532e87 in thread::Thread::_starter (p=0x25ac110) at src/thread/thread.cpp:26
#9  0x00007f2ab82a70a2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f2ab7fdcd1d in clone () from /usr/lib/libc.so.6

Fixed in 78b05ec.