taglib/tests/data
Urs Fleisch 197d2a684b Correctly parse MP4 non-full meta atoms (#1041)
There are m4a files with regular (non-full) meta atoms. When such
a meta atom is not correctly parsed, the subsequent atoms are not
recognized and offsets will not be adjusted when atoms are added,
which will corrupt the MP4 file.

This change will look behind the meta atom to check if the next
atom follows directly, i.e. without the four bytes with version
and flags as they exist in full atoms. In such a case, these
four bytes will not be skipped.

Witnesses of this strange format specification are
https://leo-van-stee.github.io/
https://github.com/axiomatic-systems/Bento4/blob/v1.6.0-639/Source/C%2B%2B/Core/Ap4ContainerAtom.cpp#L60
2022-03-12 07:33:32 +01:00
..
64bit.mp4 Partial support for 64-bit atoms 2009-07-24 13:08:51 +00:00
005411.id3 Add a hack to read ID2v2.4 frames with v2.3-like sizes, written by iTunes. 2007-12-01 09:15:23 +00:00
alaw.aifc Add support for AIFF-C files. 2014-12-30 23:53:40 +09:00
alaw.wav WAV: AudioProperties improvements 2015-06-18 17:43:09 +09:00
ape-id3v1.mp3 Fix MPEG::File::firstFrameOffset() and lastFrameOffset(). (#190) 2015-05-25 02:41:27 +09:00
ape-id3v2.mp3 Fix MPEG::File::firstFrameOffset() and lastFrameOffset(). (#190) 2015-05-25 02:41:27 +09:00
ape.mp3 Fix MPEG::File::firstFrameOffset() and lastFrameOffset(). (#190) 2015-05-25 02:41:27 +09:00
bladeenc.mp3 MPEG: AudioProperties improvements 2015-06-18 17:14:04 +09:00
blank_video.m4v Add some tests for M4V files. 2015-11-30 17:18:50 +09:00
broken-tenc.id3 Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
changed.mod comment writing support and more tests for mod and xm 2011-06-19 04:27:51 +02:00
changed.s3m S3M+IT: fix reading, IT: untested support for message writing 2011-06-23 05:41:23 +02:00
changed.xm comment writing support and more tests for mod and xm 2011-06-19 04:27:51 +02:00
click.mpc Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
click.wv Add my old WMA and MP4 code. It is disabled by default, must be explicitly enabled to be compiled. 2008-11-12 08:17:11 +00:00
compressed_id3_frame.mp3 Fix a wrong parameter for zlib. 2015-01-06 18:45:42 +09:00
correctness_gain_silent_output.opus Add support for Ogg Opus 2012-10-13 08:55:23 +02:00
covr-junk.m4a Ignore trailing non-data atoms when parsing MP4 covr atoms 2010-04-02 12:14:32 +00:00
dsd_stereo.wv add test for WavPack DSD (issue #962) 2020-07-01 08:35:20 -07:00
duplicate_id3v2.aiff Check AIFF/WAV files for duplicate tags. 2015-02-18 11:31:55 +09:00
duplicate_id3v2.mp3 Add a test for duplicate ID3v2 tags. 2014-10-21 00:16:43 +09:00
duplicate_tags.wav Check AIFF/WAV files for duplicate tags. 2015-02-18 11:31:55 +09:00
empty_alac.m4a ALAC file encoded by iTunes 2011-06-09 18:40:22 +02:00
empty_flac.oga Don't wrote the Vorbis framing bit to OggFLAC files 2009-10-24 12:01:40 +00:00
empty_vorbis.oga Full read/write support for FLAC pictures 2011-01-08 10:36:26 +00:00
empty-seektable.flac Be tolerant of empty FLAC seektable blocks. 2017-01-10 00:11:13 +09:00
empty.aiff Handle RIFF chunk padding and ignore trailing garbage 2009-07-28 18:29:39 +00:00
empty.ogg Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
empty.spx Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
empty.tta TrueAudio support. 2007-11-10 22:55:14 +00:00
empty.wav Added reading of WAV audio length 2010-07-11 09:47:58 +00:00
excessive_alloc.aif Add some tests for huge memory allocation due to bad ID3v2 frame header flags. 2015-01-05 09:34:30 +09:00
excessive_alloc.mp3 Add some tests for huge memory allocation due to bad ID3v2 frame header flags. 2015-01-05 09:34:30 +09:00
float64.wav WAV: AudioProperties improvements 2015-06-18 17:43:09 +09:00
four_channels.wv WavPack: AudioProperties improvements 2015-06-18 17:59:06 +09:00
garbage.mp3 Ignore fake MPEG frame headers when seeking them. 2017-01-20 22:38:25 +09:00
gnre.m4a Fixed ID3v1-style genre to string conversion in MP4 files 2009-10-29 15:53:20 +00:00
has-tags.m4a Add my old WMA and MP4 code. It is disabled by default, must be explicitly enabled to be compiled. 2008-11-12 08:17:11 +00:00
id3v22-tda.mp3 Replace a possibly non-free file in the test suite. 2016-10-22 02:11:16 +09:00
ilst-is-last.m4a Fix off-by-one error in MP4::Tag when looking for free padding to use 2009-04-29 15:12:19 +00:00
infloop.m4a Fix infinite loops when parsing MP4 files. 2015-02-18 11:33:10 +09:00
infloop.mpc Check for EOF to fix an infinite loop while parsing fuzzed MPC files. 2015-02-17 01:22:39 +09:00
infloop.wav Add a test for fuzzed WAV files. 2014-12-31 01:44:25 +09:00
infloop.wv Avoid an infinite loop when reading fuzzed WavPack files. (#482) 2015-05-22 14:15:10 +09:00
invalid-frames1.mp3 Add a test for broken MPEG audio frames. 2016-01-09 13:30:00 +09:00
invalid-frames2.mp3 More robust checks for invalid MPEG frame headers. (again) 2015-12-22 14:57:23 +09:00
invalid-frames3.mp3 Add a test for broken MPEG audio frames. 2016-01-09 13:30:00 +09:00
lame_cbr.mp3 MPEG: AudioProperties improvements 2015-06-18 17:14:04 +09:00
lame_vbr.mp3 MPEG: AudioProperties improvements 2015-06-18 17:14:04 +09:00
longloop.ape Added some tests for fuzzed APE files. 2014-12-23 21:02:00 +09:00
lossless.wma ASF: Enable ASF::Properties to get the audio codec information. 2015-06-21 02:42:47 +09:00
lowercase-fields.ogg Fix handling of lowercase 'metadata_block_picture' fields in Vorbis comments. 2016-11-11 00:07:32 +09:00
mac-390-hdr.ape Support for reading/writing tags from Monkey's Audio files 2010-07-03 11:32:27 +00:00
mac-396.ape Support for reading/writing tags from Monkey's Audio files 2010-07-03 11:32:27 +00:00
mac-399-id3v2.ape Add a test for APE files with an ID3v2 tag. 2015-06-18 14:41:37 +09:00
mac-399-tagged.ape APE: Use the audio stream length in calculating the bit rate. 2015-06-18 14:41:37 +09:00
mac-399.ape APE: AudioProperties improvements 2015-06-18 14:41:37 +09:00
mpeg2.mp3 Use correct frame sizes when calculating length of MPEG 2 or 2.5 streams. 2007-11-22 18:55:47 +00:00
multiple-vc.flac Always read tags from the first Vorbis Comment block in FLAC files 2009-11-02 19:41:12 +00:00
no_length.wv Fix reading of WavPack streams without a length information in the header 2010-11-27 20:58:57 +00:00
no-extension Added some test cases for FileRef about unsupported files 2013-06-21 15:29:00 +09:00
no-tags.3g2 Add my old WMA and MP4 code. It is disabled by default, must be explicitly enabled to be compiled. 2008-11-12 08:17:11 +00:00
no-tags.flac Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
no-tags.m4a Add my old WMA and MP4 code. It is disabled by default, must be explicitly enabled to be compiled. 2008-11-12 08:17:11 +00:00
noise_odd.aif Fix writing of new RIFF chunks at even positions 2011-02-13 10:27:56 +00:00
noise.aif Fix writing of new RIFF chunks at even positions 2011-02-13 10:27:56 +00:00
non_standard_rate.wv WavPack: Add test with non-standard sample rate 2020-12-23 07:04:51 +01:00
non-full-meta.m4a Correctly parse MP4 non-full meta atoms (#1041) 2022-03-12 07:33:32 +01:00
pcm_with_fact_chunk.wav Ignore 'fact' chunk of WAV files if their format is PCM. 2016-01-30 00:51:28 +09:00
rare_frames.mp3 More support for the unified dictionary interface. 2011-08-27 01:18:21 +02:00
segfault2.mpc Check for EOF to fix a segfault while parsing fuzzed MPC files. 2015-02-17 01:22:39 +09:00
segfault.aif Add support for AIFF-C files. 2014-12-30 23:53:40 +09:00
segfault.mpc Check the packet size to fix a segfault error while parsing fuzzed MPC files. 2015-02-17 01:22:39 +09:00
segfault.oga Fix a segfault when reading faulty Ogg/FLAC files. 2015-01-01 19:59:30 +09:00
segfault.wav Fix a segfault when parsing WAV properties. 2014-12-31 01:46:30 +09:00
silence-1.wma Add my old WMA and MP4 code. It is disabled by default, must be explicitly enabled to be compiled. 2008-11-12 08:17:11 +00:00
silence-44-s.flac Read-only support for FLAC picture blocks 2010-07-25 11:06:36 +00:00
sinewave.flac FLAC: AudioProperties improvements 2015-08-01 00:49:21 +09:00
stripped.xm comment writing support and more tests for mod and xm 2011-06-19 04:27:51 +02:00
sv4_header.mpc Refactoring of the Musepack SV8 properties code 2012-07-11 14:13:41 +02:00
sv5_header.mpc Refactoring of the Musepack SV8 properties code 2012-07-11 14:13:41 +02:00
sv8_header.mpc Refactoring of the Musepack SV8 properties code 2012-07-11 14:13:41 +02:00
tagged.tta TrueAudio: A bit more accurate calculation of the stream length. 2015-06-20 17:36:00 +09:00
tagged.wv WavPack: A bit more accurate calculation of the stream length. 2015-06-18 18:00:03 +09:00
test.it IT: unit tests 2011-06-24 01:31:15 +02:00
test.mod added unit test for one flavour of .mod files 2011-06-17 05:18:49 +02:00
test.ogg Some preliminary work for unified dictionary tag interface support. 2011-08-26 21:48:40 +02:00
test.s3m S3M: unit tests and bug fixes (NUL char. is not optional in S3M strings) 2011-06-23 20:08:05 +02:00
test.xm fixed mod property names and added unit test for xm 2011-06-18 03:31:49 +02:00
toc_many_children.mp3 Fix reading table of contents frames with a lot of children. 2016-05-14 09:58:19 +09:00
uint8we.wav WAV: Test properties of file with WAVE_FORMAT_EXTENSIBLE 2020-12-21 15:42:13 +01:00
unsupported-extension.xx Renamed unsupported-extension.xxx and modified test 2016-12-22 15:19:45 +00:00
unsynch.id3 Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
w000.mp3 ID3 frame IDs with 0 should be recognized as valid 2012-08-17 07:50:48 +02:00
xing.mp3 Add a CppUnit-based test suite (only very few things is covered for now, but it's a start). 2007-11-10 16:46:04 +00:00
zero-length-mdat.m4a Proper handling of MP4 atoms with zero length. 2016-11-02 15:44:50 +09:00
zero-size-chunk.wav Detect RIFF files with invalid chunk sizes 2011-10-08 18:41:15 +02:00
zero-sized-padding.flac Make FLAC::File tolerant to zero-sized padding blocks. 2015-07-29 20:52:56 +09:00
zerodiv.ape Added some tests for fuzzed APE files. 2014-12-23 21:02:00 +09:00
zerodiv.mpc Fix an out-of-bounds access and consequent errors while parsing fuzzed MPC files. 2015-02-17 01:22:38 +09:00