Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Issue 9614004: Avoid loading ws2_32.dll just to get htons() and friends. (Closed)

Created:
8 years, 9 months ago by Wez
Modified:
8 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Sergey Ulanov
Visibility:
Public.

Description

Avoid loading ws2_32.dll just to get htons() and friends. Chrome does not load ws2_32.dll into the renderer sandbox, so code calling these functions would fail attempting to load the DLL. This CL replaces the calls with direct use of the MSVC byte-swap intrinsics. BUG=115477, 116591 TEST=Chromoting client does not crash on connect on Windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125110

Patch Set 1 #

Patch Set 2 : Make patch 87% less ugly by moving macro hacks closer to failing code. #

Total comments: 1

Patch Set 3 : Make patch 4.7% uglier with helpful TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M crypto/p224.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M net/base/net_util.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Wez
Quick-fix for the Chromoting crashers. I'll follow up with a CL that instead defines base::htons() ...
8 years, 9 months ago (2012-03-06 00:52:39 UTC) #1
Wez
PTAL
8 years, 9 months ago (2012-03-06 01:43:13 UTC) #2
willchan no longer on Chromium
Do you need the base/ change (it seems to be whitespace only)? the net/ change ...
8 years, 9 months ago (2012-03-06 01:44:59 UTC) #3
Wez
rsleevi: crypto/ approval, plz
8 years, 9 months ago (2012-03-06 01:52:09 UTC) #4
Wez
On 2012/03/06 01:44:59, willchan wrote: > Do you need the base/ change (it seems to ...
8 years, 9 months ago (2012-03-06 01:53:21 UTC) #5
Ryan Sleevi
See the original discussion on http://codereview.chromium.org/8949026 I don't think there is opposition to adding the ...
8 years, 9 months ago (2012-03-06 01:56:47 UTC) #6
Ryan Sleevi
Ah, just saw comment 1 under the fold. LGTM as a quick fix to be ...
8 years, 9 months ago (2012-03-06 01:57:39 UTC) #7
Wez
On 2012/03/06 01:57:39, Ryan Sleevi wrote: > Ah, just saw comment 1 under the fold. ...
8 years, 9 months ago (2012-03-06 02:00:15 UTC) #8
willchan no longer on Chromium
Sorry Ryan, wez@ and I chatted about this offline. I agreed with you, so I ...
8 years, 9 months ago (2012-03-06 02:00:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/9614004/1008
8 years, 9 months ago (2012-03-06 02:26:08 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-06 04:34:25 UTC) #11
Change committed as 125110

Powered by Google App Engine
This is Rietveld 408576698