From 07df8493db3549627c21429ae0b04550e238115b Mon Sep 17 00:00:00 2001 From: Kevin McGonigle Date: Tue, 28 Mar 2023 10:58:06 +0100 Subject: [PATCH] Disable `udta` Parsing --- CHANGELOG.md | 3 +++ lib/format_parser/version.rb | 2 +- lib/parsers/iso_base_media_file_format/decoder.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef4faf8..e238fe37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.4.5 +* Disable `udta` ISOBMFF box parsing, since their contents are not guaranteed to be consistent with the spec. + ## 2.4.4 * Prevent infinite loops when parsing ISOBMFF boxes with size = 0 (meaning that the box extends to the end of the file). diff --git a/lib/format_parser/version.rb b/lib/format_parser/version.rb index 20bbb34a..19ba0fdb 100644 --- a/lib/format_parser/version.rb +++ b/lib/format_parser/version.rb @@ -1,3 +1,3 @@ module FormatParser - VERSION = '2.4.4' + VERSION = '2.4.5' end diff --git a/lib/parsers/iso_base_media_file_format/decoder.rb b/lib/parsers/iso_base_media_file_format/decoder.rb index 9dbf4883..8b9117d2 100644 --- a/lib/parsers/iso_base_media_file_format/decoder.rb +++ b/lib/parsers/iso_base_media_file_format/decoder.rb @@ -116,7 +116,7 @@ def build_box_tree(max_read, io = nil) 'trak' => :container, # 'trex' => :trex, # 'tsel' => :tsel, - 'udta' => :container, + # 'udta' => :container, # 'url ' => :dref_url, # 'urn ' => :dref_urn, 'uuid' => :uuid,