Lukáš Lalinský
db2dfa9515
Merge pull request #538 from gogglesmm/optimize-mid-to-uint
...
bytevector.mid(pos,4).toUInt() => bytevector.toUInt(pos)
2015-05-15 20:06:24 -07:00
Lukáš Lalinský
0069debf0c
Merge pull request #536 from FestusHagen/fh1.m_CMakeSubProjectFix
...
Fix for using Taglib as a CMake sub directory project.
2015-05-15 19:48:43 -07:00
Lukáš Lalinský
ab2389819e
Merge pull request #507 from TsudaKageyu/merge-master-to-taglib2
...
Merge master to taglib2
2015-05-15 19:46:52 -07:00
Lukáš Lalinský
69563d83a0
Merge pull request #533 from TsudaKageyu/bytevector-resize
...
Fix the wrong padding of ByteVector::resize().
2015-05-15 19:43:38 -07:00
Sander Jansen
60775306ea
Fix code styling
2015-05-15 21:39:34 -05:00
Sander Jansen
4f77420248
replace use of bytevector.mid(pos,4).toUInt() with more optimized bytevector.toUInt(pos)
2015-05-15 21:25:44 -05:00
Tsuda Kageyu
b021ed44e9
Revert the last two commits.
...
But leave the tests unchanged, and add some comments.
2015-05-16 11:16:00 +09:00
Tsuda Kageyu
1f99c93a61
Reduce redundant memset when resizing ByteVector.
2015-05-16 03:46:34 +09:00
Tsuda Kageyu
a924ca0db7
Expand the internal buffer of ByteVector only if really needed.
...
Add tests for all execution paths of ByteVector::resize().
2015-05-14 11:20:35 +09:00
Urs Fleisch
b5c0ab58ba
Get version information from taglib.h.
...
This avoids duplication of the version information in both
CMakeLists.txt and taglib.h while keeping the possibility to
use something different from CMake.
2015-05-10 10:30:51 +02:00
Festus Hagen
e43c1a3c09
Fix for using Taglib as a CMake sub directory project.
2015-05-09 20:29:52 -04:00
Festus Hagen
1e9529380d
Silenced uint ambiguity error.
2015-05-09 14:19:33 -04:00
Tsuda Kageyu
ff8443f33a
Fix the wrong padding of ByteVector::resize().
...
The expanded area will be filled with garbage instead of correct padding in some corner cases.
2015-05-02 02:43:08 +09:00
Lukáš Lalinský
62ab41fa07
Merge pull request #532 from TsudaKageyu/bytevector-detach-test
...
A little robuster tests for ByteVector iterators after detaching.
2015-04-29 10:14:16 -07:00
Tsuda Kageyu
00e3504264
A little robuster tests for ByteVector iterators after detaching.
2015-04-29 17:15:13 +09:00
Lukáš Lalinský
852da79899
Merge pull request #531 from TsudaKageyu/bytevector-detach
...
Fix ByteVector to return correct iterators after detached.
2015-04-28 20:34:53 -07:00
Tsuda Kageyu
ab047f6054
Fix ByteVector to return correct iterators after detached.
2015-04-29 10:28:08 +09:00
Lukáš Lalinský
5bad35c4cb
Merge pull request #527 from TsudaKageyu/wma-guid
...
Fix saving WMA files with some GUID fields.
2015-04-28 10:42:06 -07:00
Tsuda Kageyu
8d708c03e1
Store any GUID fields in Metadata Library Object.
2015-04-28 16:40:24 +09:00
Tsuda Kageyu
f9a0b50830
Fix saving WMA files with some GUID fields.
2015-04-28 12:06:24 +09:00
Tsuda Kageyu
8491266b12
Fix a GCC/Clang warning about singed/unsigned comparison.
2015-04-17 09:38:21 +09:00
Stephen F. Booth
066b5aa57e
Merge pull request #492 from TsudaKageyu/duplicate-id3v2-aiff-wav
...
Check AIFF/WAV files for duplicate tags.
2015-03-25 08:16:41 -04:00
Tsuda Kageyu
5f0a7da481
Take into account the frame header version when skipping an empty frame.
2015-03-24 10:41:39 +09:00
Tsuda Kageyu
d33d684fab
Discard empty ID3v2 frames instead of adding a dummy null byte.
2015-03-24 10:31:52 +09:00
Tsuda Kageyu
4c4be0a263
Add a dummy byte to an empty ID3v2 frame to stick to the ID3v2 spec.
2015-03-22 22:14:21 +09:00
Michael Helmling
f476cf2b45
Merge pull request #511 from TsudaKageyu/tag-prop
...
Fix a bug that Tag::setProperties() clears the date instead of the track number
2015-03-20 10:28:20 +01:00
Tsuda Kageyu
68c0b0591b
Fix a bug that Tag::setProperties() clears the date instead of the track number.
2015-03-20 13:33:13 +09:00
Stephen F. Booth
8fccaf30d2
Merge pull request #479 from TsudaKageyu/fuzzed-mp4
...
Fix an infinite loop when parsing MP4 files.
2015-02-18 08:15:50 -05:00
Tsuda Kageyu
b69973bcf2
Fix infinite loops when parsing MP4 files.
2015-02-18 11:33:10 +09:00
Tsuda Kageyu
30eac7569f
Check AIFF/WAV files for duplicate tags.
...
AIFF/WAV files can have duplicate tags and it leads to memory leak.
2015-02-18 11:31:55 +09:00
Tsuda Kageyu
8e35b43e32
Merge branch 'master' into merge-master-to-taglib2
...
Conflicts:
ConfigureChecks.cmake
config.h.cmake
taglib/CMakeLists.txt
taglib/ape/apeproperties.cpp
taglib/fileref.cpp
taglib/mp4/mp4atom.cpp
taglib/mpc/mpcproperties.cpp
taglib/mpeg/id3v2/frames/chapterframe.cpp
taglib/mpeg/id3v2/frames/tableofcontentsframe.cpp
taglib/mpeg/id3v2/id3v2frame.cpp
taglib/mpeg/id3v2/id3v2framefactory.cpp
taglib/mpeg/id3v2/id3v2tag.cpp
taglib/mpeg/mpegfile.cpp
taglib/mpeg/mpegfile.h
taglib/riff/aiff/aifffile.cpp
taglib/riff/aiff/aiffproperties.cpp
taglib/riff/aiff/aiffproperties.h
taglib/riff/wav/infotag.cpp
taglib/riff/wav/wavfile.cpp
taglib/riff/wav/wavproperties.cpp
taglib/toolkit/tdebug.cpp
taglib/toolkit/tstring.cpp
taglib/toolkit/tutils.h
tests/test_aiff.cpp
tests/test_id3v2.cpp
tests/test_wav.cpp
2015-02-18 10:07:08 +09:00
Lukáš Lalinský
f6081ed32e
Merge pull request #505 from TsudaKageyu/fuzzed-ape-tests
...
Separate the tests for fuzzed APE files.
2015-02-17 09:22:35 +01:00
Tsuda Kageyu
0839a23902
Separate the tests for fuzzed APE files.
2015-02-17 12:36:57 +09:00
Lukáš Lalinský
f35a279dd1
Merge pull request #496 from TsudaKageyu/fuzzed-mpc
...
Some fixes for fuzzed MPC files.
2015-02-16 19:26:57 +01:00
Tsuda Kageyu
e463d14f2e
Check for EOF to fix a segfault while parsing fuzzed MPC files.
2015-02-17 01:22:39 +09:00
Tsuda Kageyu
829ae2112a
Check the packet size to fix a segfault error while parsing fuzzed MPC files.
2015-02-17 01:22:39 +09:00
Tsuda Kageyu
65664e6855
Check for EOF to fix an infinite loop while parsing fuzzed MPC files.
2015-02-17 01:22:39 +09:00
Tsuda Kageyu
2193d6dd84
Fix an out-of-bounds access and consequent errors while parsing fuzzed MPC files.
...
Consequent errors may vary: segfault, zerodiv and so forth.
2015-02-17 01:22:38 +09:00
Stephen F. Booth
ef786188ad
Merge pull request #502 from TsudaKageyu/fix-save-wav
...
Fix saving ID3v2/INFO tags of WAV files.
2015-01-31 14:12:18 -05:00
Tsuda Kageyu
2b5ee8deb9
Fix saving ID3v2/INFO tags of WAV files.
...
The old tag won't be removed when the new tag is empty.
2015-01-30 14:51:28 +09:00
Scott Wheeler
ed09c9cf87
Merge pull request #494 from TsudaKageyu/fix-zlib
...
Fix a wrong parameter for zlib.
2015-01-06 17:06:10 +01:00
Tsuda Kageyu
9d91610fc0
Fix a wrong parameter for zlib.
...
z_stream.avail_in has to be the length of the input buffer.
It will fail when frameDataLength is smaller than the actual compressed data size.
2015-01-06 18:45:42 +09:00
Stephen F. Booth
aed689c145
Merge pull request #491 from TsudaKageyu/aiff-hasid3v2
...
Implement missing AIFF::File::hasID3v2Tag().
2015-01-05 08:17:21 -05:00
Tsuda Kageyu
c6a63a3a2f
Implement missing AIFF::File::hasID3v2Tag().
2015-01-05 18:20:31 +09:00
Stephen F. Booth
2b0a540228
Merge pull request #490 from TsudaKageyu/remove-uncompr
...
Remove an unused file from taglib/CMakeLists.txt.
2015-01-04 22:31:42 -05:00
Tsuda Kageyu
2685ec1842
Remove an unused file from taglib/CMakeLists.txt.
...
uncompr.c is no longer used since caa53e8
2015-01-05 11:00:47 +09:00
Scott Wheeler
fdea6dcd40
Merge pull request #489 from TsudaKageyu/frame-flag-tests
...
Add some tests for huge memory allocation due to bad ID3v2 frame header ...
2015-01-05 02:03:06 +01:00
Tsuda Kageyu
ed253d3691
Add some tests for huge memory allocation due to bad ID3v2 frame header flags.
...
The tests covers #466 and #486 .
Also fixes a compilation error on some compilers.
2015-01-05 09:34:30 +09:00
Scott Wheeler
57729b834a
Show a debugging message when we have an error reading
2015-01-04 20:13:24 +01:00
Scott Wheeler
caa53e8de5
Read the compressed data as a stream
...
This avoids allocating the complete buffer at first based solely
on the value read from the frame header. This then does a sanity
check at the end of reading to make sure that the two values match.
At present, it just prints a debugging message if the values do not
match.
Fixes #466
2015-01-04 19:58:18 +01:00