Skip to content

Guard against null rtpmap value in MP4RtpHintTrack::GetPayload#96

Open
SAY-5 wants to merge 1 commit into
TechSmith:mainfrom
SAY-5:guard-null-rtpmap-getpayload
Open

Guard against null rtpmap value in MP4RtpHintTrack::GetPayload#96
SAY-5 wants to merge 1 commit into
TechSmith:mainfrom
SAY-5:guard-null-rtpmap-getpayload

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jul 20, 2026

Copy link
Copy Markdown

GetPayload reads the rtpmap string with m_pRtpMapProperty->GetValue() and passes it straight to strchr. On a file where that property is present but its value string is null, this dereferences a null pointer and crashes. Extend the existing guard so the block only runs when the value is non-null, which matches the null handling already used for the other output parameters. Fixes #89.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
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.

src/rtphint.cpp:325 NULL Pointer Dereference in MP4RtpHintTrack::GetPayload

1 participant