Bug 168474 - [WebRTC] libwebrtc socket addresses should not be passed as strings
Summary: [WebRTC] libwebrtc socket addresses should not be passed as strings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 15:11 PST by youenn fablet
Modified: 2017-02-16 18:54 PST (History)
1 user (show)

See Also:


Attachments
Patch (25.68 KB, patch)
2017-02-16 15:25 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (27.47 KB, patch)
2017-02-16 16:57 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (27.50 KB, patch)
2017-02-16 17:45 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2017-02-16 15:11:34 PST
There is loss of information that might trigger bugs in libwebrtc network stack.
Comment 1 youenn fablet 2017-02-16 15:25:35 PST
Created attachment 301840 [details]
Patch
Comment 2 WebKit Commit Bot 2017-02-16 15:27:41 PST
Attachment 301840 [details] did not pass style-queue:


ERROR: Source/WebKit2/Shared/RTCNetwork.h:62:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 1 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alex Christensen 2017-02-16 15:35:02 PST
Comment on attachment 301840 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=301840&action=review

> Source/WebKit2/WebProcess/Network/webrtc/LibWebRTCSocketFactory.cpp:64
> +    callOnMainThread([identifier = socket->identifier(), address, minPort, maxPort]() {

Let's make an isolatedCopy
Comment 4 youenn fablet 2017-02-16 16:57:14 PST
Created attachment 301859 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2017-02-16 16:58:13 PST
Comment on attachment 301859 [details]
Patch for landing

Rejecting attachment 301859 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 301859, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebKit2/ChangeLog contains OOPS!.

Full output: http://webkit-queues.webkit.org/results/3135895
Comment 6 youenn fablet 2017-02-16 17:45:45 PST
Created attachment 301866 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2017-02-16 18:54:11 PST
Comment on attachment 301866 [details]
Patch for landing

Clearing flags on attachment: 301866

Committed r212519: <http://trac.webkit.org/changeset/212519>
Comment 8 WebKit Commit Bot 2017-02-16 18:54:14 PST
All reviewed patches have been landed.  Closing bug.