]>
granicus.if.org Git - taglib/log
Stephen F. Booth [Fri, 22 May 2015 02:44:10 +0000 (22:44 -0400)]
Merge pull request #484 from TsudaKageyu/fix-rfind
Fix File::rfind() for small files.
Lukáš Lalinský [Wed, 20 May 2015 22:18:01 +0000 (15:18 -0700)]
TagLib::XM::Properties is a public class that should be exported
Scott Wheeler [Wed, 20 May 2015 17:24:52 +0000 (19:24 +0200)]
Merge pull request #550 from TsudaKageyu/fix-test
Fix test code to work on some environments.
Tsuda Kageyu [Wed, 20 May 2015 17:03:06 +0000 (02:03 +0900)]
Fix test code to work on some environments.
const char * is more preferable than string for ifstream constructor.
Scott Wheeler [Wed, 20 May 2015 12:23:48 +0000 (14:23 +0200)]
Bring the API more in line with the rest of TagLib
Like in #255, this also makes it possible to read values from the
tag in a const function.
Scott Wheeler [Wed, 20 May 2015 11:50:49 +0000 (13:50 +0200)]
Merge pull request #549 from TsudaKageyu/win32-test
Modify the test code to work on MSVC/Windows.
Tsuda Kageyu [Wed, 20 May 2015 10:57:08 +0000 (19:57 +0900)]
Modify the test code to work on MSVC/Windows.
Scott Wheeler [Wed, 20 May 2015 09:53:32 +0000 (11:53 +0200)]
This should also work Windows and has less duplicated code
Scott Wheeler [Wed, 20 May 2015 09:43:43 +0000 (11:43 +0200)]
Don't use tempnam on UNIX
This silences the huge stream of warnings when building the tests.
I think I didn't break the Windows version in the process (though
it may make sense to use the built in Windows functions there
instead), but I don't have a Windows build environment here, so
I can't test.
Scott Wheeler [Tue, 19 May 2015 17:57:47 +0000 (19:57 +0200)]
Merge pull request #546 from TsudaKageyu/test-surrogate-pair
Add a test for strings that contains surrogate pairs.
Scott Wheeler [Tue, 19 May 2015 09:28:50 +0000 (11:28 +0200)]
Merge pull request #548 from TsudaKageyu/render-twice
No need to call ID3v2::Frame::render() twice when saving an ID3v2 tag.
Tsuda Kageyu [Tue, 19 May 2015 08:39:37 +0000 (17:39 +0900)]
No need to call ID3v2::Frame::render() twice when saving an ID3v2 tag.
Scott Wheeler [Tue, 19 May 2015 08:15:15 +0000 (10:15 +0200)]
Quote path names including user-provided variables
This should make these work even if the value contains spaces
Closes #344
Tsuda Kageyu [Mon, 23 Feb 2015 00:38:12 +0000 (09:38 +0900)]
Add a test for strings that contains surrogate pairs.
Scott Wheeler [Mon, 18 May 2015 21:11:51 +0000 (23:11 +0200)]
Remove *file argument to private members
This is already covered by d->file, so there's no reason to pass a pointer
to the member dozens of times.
Scott Wheeler [Mon, 18 May 2015 21:00:16 +0000 (23:00 +0200)]
Moar const fixes
Scott Wheeler [Mon, 18 May 2015 20:25:00 +0000 (22:25 +0200)]
1001 Const fixes (plus iterator rename)
Scott Wheeler [Mon, 18 May 2015 19:40:11 +0000 (21:40 +0200)]
Remove unnecessary checks for null before delete
Closes #343
Scott Wheeler [Mon, 18 May 2015 19:36:37 +0000 (21:36 +0200)]
Merge pull request #515 from TsudaKageyu/empty-id3v2-frame
Skip empty ID3v2 frames when saving an ID3v2 tag.
Scott Wheeler [Mon, 18 May 2015 19:18:33 +0000 (21:18 +0200)]
Add accessors to manipulate MP4 tags without modifying the internal structure
This brings the MP4 API in line closer to other tag formats and makes it
possible to access the tag data from const functions.
"ItemListMap" has been renamed to "ItemMap" (with the old version
deprecated). It seems that the "ListMap" notion was copied probably
from Allan's ApeTag implementation, which incorrectly copied the term
from the XiphTag. Notably, in XiphTag, because a field can have multiple
values, the "ListMap" is a map of lists. Calling things a "ListMap" where
there can be only one value doesn't fit.
Closes #255
Scott Wheeler [Mon, 18 May 2015 18:30:19 +0000 (20:30 +0200)]
Add isEmpty() to MP4
Closes #457
Scott Wheeler [Mon, 18 May 2015 17:51:18 +0000 (19:51 +0200)]
Show something useful for ChapterFrame::toString()
Closes #517
Tsuda Kageyu [Thu, 1 Jan 2015 07:40:13 +0000 (16:40 +0900)]
Fix File::rfind() for small files to work just like ByteVector::rfind().
Scott Wheeler [Mon, 18 May 2015 16:19:43 +0000 (18:19 +0200)]
Update signature and docs
Specifically this allows the frame to be constructed and then to have
the children and embedded frames set later.
Scott Wheeler [Mon, 18 May 2015 16:12:34 +0000 (18:12 +0200)]
Remove the null termination stuff from the ToC frames too
Scott Wheeler [Mon, 18 May 2015 15:29:52 +0000 (17:29 +0200)]
We've moved away from including the null byte in the returned value
This does change previous behavior, but the previous behavior was
particularly stupid and inconsistent with everything else in TagLib.
It should be possible to mitigate this by putting the same safety
guards in the TableOfContents
Scott Wheeler [Mon, 18 May 2015 15:11:06 +0000 (17:11 +0200)]
Don't underflow if there are no embedded frames
Closes #513
Scott Wheeler [Mon, 18 May 2015 14:53:12 +0000 (16:53 +0200)]
This isn't tracked as part of the elementID anymore
Scott Wheeler [Mon, 18 May 2015 14:45:57 +0000 (16:45 +0200)]
Split chapter data and embedded frame data
This will allow us to test parsing them separately
Scott Wheeler [Mon, 18 May 2015 14:41:30 +0000 (16:41 +0200)]
Don't require users to include a padding byte explicitly
This makes it where the natural construction can be used of something
like:
new ChapterFrame("ID", ... )
Closes #514
Scott Wheeler [Mon, 18 May 2015 14:25:06 +0000 (16:25 +0200)]
Also test second constructor
Scott Wheeler [Mon, 18 May 2015 13:35:41 +0000 (15:35 +0200)]
Update signature and docs to be more in-line with TagLib's style
Scott Wheeler [Mon, 18 May 2015 13:09:28 +0000 (15:09 +0200)]
Merge pull request #544 from TsudaKageyu/advance
Use std::advance rather than a loop and increment.
Scott Wheeler [Mon, 18 May 2015 12:21:55 +0000 (14:21 +0200)]
It doesn't make sense to set the factory after construction
Closes #259
Scott Wheeler [Mon, 18 May 2015 10:42:24 +0000 (12:42 +0200)]
Make this macro work with current Qt versions
Closes #499
Tsuda Kageyu [Mon, 18 May 2015 10:03:20 +0000 (19:03 +0900)]
Add a test to check if an empty ID3v2 frame is really skipped.
Scott Wheeler [Mon, 18 May 2015 09:30:28 +0000 (11:30 +0200)]
Add astylerc
Tsuda Kageyu [Mon, 18 May 2015 00:31:43 +0000 (09:31 +0900)]
Use std::advance rather than a loop and increment.
Lukáš Lalinský [Sun, 17 May 2015 17:06:10 +0000 (10:06 -0700)]
Merge pull request #521 from TsudaKageyu/gcc-warning
Fix a GCC/Clang warning about singed/unsigned comparison.
Lukáš Lalinský [Sun, 17 May 2015 17:05:43 +0000 (10:05 -0700)]
Merge pull request #542 from TsudaKageyu/comment-typos
Fix some typos in comment.
Tsuda Kageyu [Sun, 17 May 2015 15:31:46 +0000 (00:31 +0900)]
Fix some typos in comment.
Lukáš Lalinský [Sun, 17 May 2015 00:03:53 +0000 (17:03 -0700)]
Merge pull request #535 from FestusHagen/fh1.m_UintAmbiguity
Silenced uint ambiguity error.
Lukáš Lalinský [Sat, 16 May 2015 03:06:24 +0000 (20:06 -0700)]
Merge pull request #538 from gogglesmm/optimize-mid-to-uint
bytevector.mid(pos,4).toUInt() => bytevector.toUInt(pos)
Lukáš Lalinský [Sat, 16 May 2015 02:48:43 +0000 (19:48 -0700)]
Merge pull request #536 from FestusHagen/fh1.m_CMakeSubProjectFix
Fix for using Taglib as a CMake sub directory project.
Lukáš Lalinský [Sat, 16 May 2015 02:43:38 +0000 (19:43 -0700)]
Merge pull request #533 from TsudaKageyu/bytevector-resize
Fix the wrong padding of ByteVector::resize().
Sander Jansen [Sat, 16 May 2015 02:39:34 +0000 (21:39 -0500)]
Fix code styling
Sander Jansen [Sat, 16 May 2015 02:25:44 +0000 (21:25 -0500)]
replace use of bytevector.mid(pos,4).toUInt() with more optimized bytevector.toUInt(pos)
Tsuda Kageyu [Sat, 16 May 2015 02:16:00 +0000 (11:16 +0900)]
Revert the last two commits.
But leave the tests unchanged, and add some comments.
Tsuda Kageyu [Fri, 15 May 2015 18:46:34 +0000 (03:46 +0900)]
Reduce redundant memset when resizing ByteVector.
Tsuda Kageyu [Thu, 14 May 2015 02:20:35 +0000 (11:20 +0900)]
Expand the internal buffer of ByteVector only if really needed.
Add tests for all execution paths of ByteVector::resize().
Festus Hagen [Tue, 28 Apr 2015 07:24:04 +0000 (03:24 -0400)]
Fix for using Taglib as a CMake sub directory project.
Festus Hagen [Tue, 28 Apr 2015 07:00:21 +0000 (03:00 -0400)]
Silenced uint ambiguity error.
Tsuda Kageyu [Fri, 1 May 2015 17:34:40 +0000 (02:34 +0900)]
Fix the wrong padding of ByteVector::resize().
The expanded area will be filled with garbage instead of correct padding in some corner cases.
Lukáš Lalinský [Wed, 29 Apr 2015 17:14:16 +0000 (10:14 -0700)]
Merge pull request #532 from TsudaKageyu/bytevector-detach-test
A little robuster tests for ByteVector iterators after detaching.
Tsuda Kageyu [Wed, 29 Apr 2015 08:15:13 +0000 (17:15 +0900)]
A little robuster tests for ByteVector iterators after detaching.
Lukáš Lalinský [Wed, 29 Apr 2015 03:34:53 +0000 (20:34 -0700)]
Merge pull request #531 from TsudaKageyu/bytevector-detach
Fix ByteVector to return correct iterators after detached.
Tsuda Kageyu [Wed, 29 Apr 2015 01:28:08 +0000 (10:28 +0900)]
Fix ByteVector to return correct iterators after detached.
Lukáš Lalinský [Tue, 28 Apr 2015 17:42:06 +0000 (10:42 -0700)]
Merge pull request #527 from TsudaKageyu/wma-guid
Fix saving WMA files with some GUID fields.
Tsuda Kageyu [Tue, 28 Apr 2015 07:40:24 +0000 (16:40 +0900)]
Store any GUID fields in Metadata Library Object.
Tsuda Kageyu [Tue, 28 Apr 2015 02:43:43 +0000 (11:43 +0900)]
Fix saving WMA files with some GUID fields.
Tsuda Kageyu [Fri, 17 Apr 2015 00:38:21 +0000 (09:38 +0900)]
Fix a GCC/Clang warning about singed/unsigned comparison.
Stephen F. Booth [Wed, 25 Mar 2015 12:16:41 +0000 (08:16 -0400)]
Merge pull request #492 from TsudaKageyu/duplicate-id3v2-aiff-wav
Check AIFF/WAV files for duplicate tags.
Tsuda Kageyu [Tue, 24 Mar 2015 01:41:39 +0000 (10:41 +0900)]
Take into account the frame header version when skipping an empty frame.
Tsuda Kageyu [Tue, 24 Mar 2015 01:31:52 +0000 (10:31 +0900)]
Discard empty ID3v2 frames instead of adding a dummy null byte.
Tsuda Kageyu [Sun, 22 Mar 2015 11:24:09 +0000 (20:24 +0900)]
Add a dummy byte to an empty ID3v2 frame to stick to the ID3v2 spec.
Michael Helmling [Fri, 20 Mar 2015 09:28:20 +0000 (10:28 +0100)]
Merge pull request #511 from TsudaKageyu/tag-prop
Fix a bug that Tag::setProperties() clears the date instead of the track number
Tsuda Kageyu [Fri, 20 Mar 2015 04:33:13 +0000 (13:33 +0900)]
Fix a bug that Tag::setProperties() clears the date instead of the track number.
Stephen F. Booth [Wed, 18 Feb 2015 13:15:50 +0000 (08:15 -0500)]
Merge pull request #479 from TsudaKageyu/fuzzed-mp4
Fix an infinite loop when parsing MP4 files.
Tsuda Kageyu [Thu, 25 Dec 2014 00:32:56 +0000 (09:32 +0900)]
Fix infinite loops when parsing MP4 files.
Tsuda Kageyu [Sat, 3 Jan 2015 18:54:46 +0000 (03:54 +0900)]
Check AIFF/WAV files for duplicate tags.
AIFF/WAV files can have duplicate tags and it leads to memory leak.
Lukáš Lalinský [Tue, 17 Feb 2015 08:22:35 +0000 (09:22 +0100)]
Merge pull request #505 from TsudaKageyu/fuzzed-ape-tests
Separate the tests for fuzzed APE files.
Tsuda Kageyu [Tue, 17 Feb 2015 03:36:57 +0000 (12:36 +0900)]
Separate the tests for fuzzed APE files.
Lukáš Lalinský [Mon, 16 Feb 2015 18:26:57 +0000 (19:26 +0100)]
Merge pull request #496 from TsudaKageyu/fuzzed-mpc
Some fixes for fuzzed MPC files.
Tsuda Kageyu [Thu, 8 Jan 2015 04:05:56 +0000 (13:05 +0900)]
Check for EOF to fix a segfault while parsing fuzzed MPC files.
Tsuda Kageyu [Thu, 8 Jan 2015 03:49:33 +0000 (12:49 +0900)]
Check the packet size to fix a segfault error while parsing fuzzed MPC files.
Tsuda Kageyu [Thu, 8 Jan 2015 03:28:20 +0000 (12:28 +0900)]
Check for EOF to fix an infinite loop while parsing fuzzed MPC files.
Tsuda Kageyu [Thu, 8 Jan 2015 03:05:17 +0000 (12:05 +0900)]
Fix an out-of-bounds access and consequent errors while parsing fuzzed MPC files.
Consequent errors may vary: segfault, zerodiv and so forth.
Stephen F. Booth [Sat, 31 Jan 2015 19:12:18 +0000 (14:12 -0500)]
Merge pull request #502 from TsudaKageyu/fix-save-wav
Fix saving ID3v2/INFO tags of WAV files.
Tsuda Kageyu [Fri, 30 Jan 2015 05:43:05 +0000 (14:43 +0900)]
Fix saving ID3v2/INFO tags of WAV files.
The old tag won't be removed when the new tag is empty.
Scott Wheeler [Tue, 6 Jan 2015 16:06:10 +0000 (17:06 +0100)]
Merge pull request #494 from TsudaKageyu/fix-zlib
Fix a wrong parameter for zlib.
Tsuda Kageyu [Tue, 6 Jan 2015 08:20:03 +0000 (17:20 +0900)]
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.
Stephen F. Booth [Mon, 5 Jan 2015 13:17:21 +0000 (08:17 -0500)]
Merge pull request #491 from TsudaKageyu/aiff-hasid3v2
Implement missing AIFF::File::hasID3v2Tag().
Tsuda Kageyu [Mon, 5 Jan 2015 09:20:31 +0000 (18:20 +0900)]
Implement missing AIFF::File::hasID3v2Tag().
Stephen F. Booth [Mon, 5 Jan 2015 03:31:42 +0000 (22:31 -0500)]
Merge pull request #490 from TsudaKageyu/remove-uncompr
Remove an unused file from taglib/CMakeLists.txt.
Tsuda Kageyu [Mon, 5 Jan 2015 02:00:47 +0000 (11:00 +0900)]
Remove an unused file from taglib/CMakeLists.txt.
uncompr.c is no longer used since
caa53e8
Scott Wheeler [Mon, 5 Jan 2015 01:03:06 +0000 (02:03 +0100)]
Merge pull request #489 from TsudaKageyu/frame-flag-tests
Add some tests for huge memory allocation due to bad ID3v2 frame header ...
Tsuda Kageyu [Mon, 5 Jan 2015 00:22:50 +0000 (09:22 +0900)]
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.
Scott Wheeler [Sun, 4 Jan 2015 19:13:24 +0000 (20:13 +0100)]
Show a debugging message when we have an error reading
Scott Wheeler [Sun, 4 Jan 2015 18:58:18 +0000 (19:58 +0100)]
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
Lukáš Lalinský [Thu, 1 Jan 2015 18:48:23 +0000 (19:48 +0100)]
Merge pull request #485 from TsudaKageyu/oga-segfault
Fix a segfault when reading faulty Ogg/FLAC files.
Lukáš Lalinský [Thu, 1 Jan 2015 18:46:53 +0000 (19:46 +0100)]
Merge pull request #473 from TsudaKageyu/fix-infotag
Fix an infinite loop when parsing an INFO tag.
Tsuda Kageyu [Thu, 1 Jan 2015 15:10:51 +0000 (00:10 +0900)]
Add a check for faulty Ogg/FLAC files.
Tsuda Kageyu [Thu, 1 Jan 2015 14:18:43 +0000 (23:18 +0900)]
Separate tests for fuzzed WAV files.
Tsuda Kageyu [Thu, 1 Jan 2015 10:54:17 +0000 (19:54 +0900)]
Fix a segfault when reading faulty Ogg/FLAC files.
Tsuda Kageyu [Tue, 30 Dec 2014 16:46:30 +0000 (01:46 +0900)]
Fix a segfault when parsing WAV properties.
Tsuda Kageyu [Tue, 23 Dec 2014 11:26:32 +0000 (20:26 +0900)]
Add a test for fuzzed WAV files.
Tsuda Kageyu [Tue, 23 Dec 2014 06:44:17 +0000 (15:44 +0900)]
Fix an infinite loop when parsing an INFO tag.
Stephen F. Booth [Tue, 30 Dec 2014 15:51:17 +0000 (10:51 -0500)]
Merge pull request #481 from TsudaKageyu/aiff-c
Add support for AIFF-C files.
Tsuda Kageyu [Tue, 30 Dec 2014 15:41:22 +0000 (00:41 +0900)]
Fix compilation errors on Clang.
Tsuda Kageyu [Tue, 30 Dec 2014 14:53:40 +0000 (23:53 +0900)]
Add support for AIFF-C files.