WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
184292
[GTK] Undefined Behavior / crash in WebRtcVideoChannel::WebRtcVideoChannel() with null encoder_factory
https://bugs.webkit.org/show_bug.cgi?id=184292
Summary
[GTK] Undefined Behavior / crash in WebRtcVideoChannel::WebRtcVideoChannel() ...
Ms2ger (he/him; ⌚ UTC+1/+2)
Reported
2018-04-04 01:05:19 PDT
If encoder_factory_ is null, AssignPayloadTypesAndDefaultCodecs() returns an empty vector, MapCodecs takes the empty vector, asserts in debug builds, and returns a new empty vector in release builds, and then we call front() unconditionally, which is Undefined Behavior for an empty vector. This appears to cause a crash in fast/mediastream/RTCPeerConnection-addIceCandidate.html.
Attachments
Add attachment
proposed patch, testcase, etc.
Alejandro G. Castro
Comment 1
2018-04-04 01:23:11 PDT
Thanks for reporting. WebRTC support for GTK port is still not complete, we are still pushing code upstream which would include enabling all the mediastream tests, we are currently working on it. We can leave this bug open to keep this issue in mind for the moment we have everything in place.
Xabier Rodríguez Calvar
Comment 2
2021-03-23 09:41:36 PDT
Usecase?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug