]> granicus.if.org Git - taglib/commit
Fix crash when loading an empty mpeg file (#830)
authorXijian Yan <yanxijian@163.com>
Mon, 6 Nov 2017 15:48:17 +0000 (23:48 +0800)
committerStephen F. Booth <me@sbooth.org>
Mon, 6 Nov 2017 15:48:17 +0000 (09:48 -0600)
commit249f892455d2759d45a6f5976f03924c04910411
tree3f265a484e163454857c3151d55295cd64be898b
parentcb9f07d9dcd791b63e622da43f7b232adaec0a9a
Fix crash when loading an empty mpeg file (#830)

When loading an empty file (empty.txt -> empty.mp3 ), TagLib will crash.
buffer.size() is 0, then buffer.size() - 1 is undefined (unsigned int)
taglib/mpeg/mpegfile.cpp