Repository navigation
Conversation
wilx
force-pushed
the
fix-nikon-video-metadata
branch
from
November 4, 2026 22:31
71e56a8 to
22bcb33
Compare
Parse NCTG records within their declared payload boundaries using full-width length calculations. Decode signed SHORT components correctly, skip unmapped records by their validated extent, and preserve descriptive lens names. Add unit and CLI regressions for signed values, malformed records, and record and atom boundaries. Refs Exiv2#3166
Select the family 01, 02, and 03 layouts before reading Picture Control fields. Preserve legacy output and decode modern names, bases, and adjustment modes without applying unverified legacy offsets. Validate version strings and field boundaries, clear obsolete Picture Control values when a later record replaces them, and add modern-layout regressions. Fixes Exiv2#3166
Replace Nikon NCTG width-table subscripts with std::array::at() to address the CodeQL review findings. Keep the existing type validation and record bounds.
wilx
force-pushed
the
fix-nikon-video-metadata
branch
from
November 22, 2026 15:24
22bcb33 to
5716679
Compare
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3166.
PR #3426 already fixed the original corruption exception. This addresses the false Nikon length errors and incorrect Picture Control text in the tested Z6 III and Z8 MP4 samples.
Tested both camera samples, synthetic regressions, focused ASan/UBSan checks, and the full debug CTest suite (8/8). Also verified no-XMP, BMFF-disabled, video-disabled, and Meson builds on Linux x86-64.
AI assistance: OpenAI Codex was used to develop and review these changes.