Skip to content

VPAAMP-782 static Xcode analysis - potential null pointer dereference#1731

Merged
pstroffolino merged 3 commits into
dev_sprint_25_2from
feature/VPAAMP-782
Jul 15, 2026
Merged

VPAAMP-782 static Xcode analysis - potential null pointer dereference#1731
pstroffolino merged 3 commits into
dev_sprint_25_2from
feature/VPAAMP-782

Conversation

@pstroffolino

Copy link
Copy Markdown
Contributor

Reason for Change: address handful of compilation warnings

Reason for Change: address handful of compilation warnings

Signed-off-by: Philip Stroffolino <philip_stroffolino@cable.comcast.com>
@pstroffolino
pstroffolino requested a review from a team as a code owner July 14, 2026 19:34
…ation passed as uint32_t)

Signed-off-by: Philip Stroffolino <philip_stroffolino@cable.comcast.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Xcode static-analysis findings and compilation warnings by tightening integer writes in ISO BMFF box handling and adding null-guards around mCdaiObject usage in the MPD fragment collector.

Changes:

  • Fix potential narrowing when writing 64-bit values into 32-bit fields (ISO BMFF box serialization).
  • Adjust TRUN/TFHD sample-duration setter APIs and writes to better match underlying 32-bit box fields.
  • Add mCdaiObject null checks to prevent potential null dereferences in CDAI-related MPD flows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
isobmff/isobmffbox.h Updates TRUN/TFHD sample-duration setter signatures.
isobmff/isobmffbox.cpp Adds explicit casts for 32-bit writes; updates setter implementations accordingly.
fragmentcollector_mpd.cpp Adds null checks around mCdaiObject use to avoid potential dereference.

Comment thread isobmff/isobmffbox.h
Comment thread isobmff/isobmffbox.h
Comment thread isobmff/isobmffbox.cpp
Comment thread isobmff/isobmffbox.cpp
Comment thread fragmentcollector_mpd.cpp Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@pstroffolino
pstroffolino merged commit a5f275b into dev_sprint_25_2 Jul 15, 2026
9 checks passed
@pstroffolino
pstroffolino deleted the feature/VPAAMP-782 branch July 15, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants