Bug 265422

Summary: [WebRTC] Release assertion in webrtc::RtpPacketizerH264::PacketizeStapA on bad input
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebRTCAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=265043
https://bugs.webkit.org/show_bug.cgi?id=265427
Bug Depends on:    
Bug Blocks: 267906    

Description David Kilzer (:ddkilzer) 2023-11-27 20:02:53 PST
Release assertion in webrtc::RtpPacketizerH264::PacketizeStapA 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`:

```
  [...]
  while (payload_size_left >= payload_size_needed()) {
    RTC_CHECK_GT(fragment.size(), 0);
    [...]
```

<rdar://118859268>
Comment 1 David Kilzer (:ddkilzer) 2023-11-27 20:11:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/20969
Comment 2 EWS 2023-11-28 08:21:39 PST
Committed 271215@main (832866a2a943): <https://commits.webkit.org/271215@main>

Reviewed commits have been landed. Closing PR #20969 and removing active labels.