Bug 265427 - [WebRTC] Release assertion in webrtc::RtpPacketizerH264::PacketizeSingleNalu on bad input
Summary: [WebRTC] Release assertion in webrtc::RtpPacketizerH264::PacketizeSingleNalu ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on:
Blocks: 267906
  Show dependency treegraph
 
Reported: 2023-11-27 20:54 PST by David Kilzer (:ddkilzer)
Modified: 2024-01-22 20:47 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2023-11-27 20:54:13 PST
Release assertion in webrtc::RtpPacketizerH264::PacketizeSingleNalu on bad input.

This release assertion fires when invalid input is passed in to `webrtc::RtpPacketizerH264::RtpPacketizerH264()` in `Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc`:

```
  [...]
   RTC_CHECK_GT(fragment.size(), 0u);
   packets_.push(PacketUnit(fragment, true /* first */, true /* last */,
                            false /* aggregated */, fragment[0]));
   ++num_packets_left_;
   return true;
 }
```

<rdar://118861718>
Comment 1 David Kilzer (:ddkilzer) 2023-11-27 21:01:27 PST
Pull request: https://github.com/WebKit/WebKit/pull/20972
Comment 2 EWS 2023-11-28 08:24:32 PST
Committed 271216@main (5755e4b0e628): <https://commits.webkit.org/271216@main>

Reviewed commits have been landed. Closing PR #20972 and removing active labels.
Comment 3 David Kilzer (:ddkilzer) 2024-01-22 20:43:04 PST
Closing this as the bug was fixed a in different way.
Comment 4 David Kilzer (:ddkilzer) 2024-01-22 20:43:49 PST
(In reply to David Kilzer (:ddkilzer) from comment #3)
> Closing this as the bug was fixed a in different way.

Oops, wrong bug.  Resolved/Fixed.