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

Issue 12091004: POSIX: re-enable strict aliasing (Closed)

Created:
7 years, 11 months ago by Paweł Hajdan Jr.
Modified:
7 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Visibility:
Public.

Description

POSIX: re-enable strict aliasing BUG=32204

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : compile #

Patch Set 4 : more #

Patch Set 5 : not for third party code #

Patch Set 6 : fix test #

Total comments: 2

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -20 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/app/breakpad_linux.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/crash_handler_host_linux.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/scoped_persistent.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/gpu.gyp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/tools/quic/quic_socket_utils.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/client/plugin/pepper_util.cc View 1 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
WDYT? There are some trybot issues to be figured out (just on Android I think), ...
7 years, 4 months ago (2013-08-15 01:38:34 UTC) #1
Mark Mentovai
I don’t have a very strong opinion here. On one hand, it does let the ...
7 years, 4 months ago (2013-08-15 14:29:07 UTC) #2
Paweł Hajdan Jr.
The chromium-dev thread is https://groups.google.com/a/chromium.org/d/msg/chromium-dev/dUebWSEpAR8/xhsispuiNu4J I'm rather leaning towards not enabling strict aliasing (can consider ...
7 years, 4 months ago (2013-08-19 20:09:36 UTC) #3
Mark Mentovai
7 years, 4 months ago (2013-08-19 20:24:39 UTC) #4
I’m not sure about Clang, but I think that with GCC, you don’t get the warnings
(even with -Wstrict-aliasing) unless -fstrict-aliasing is on.

If you’d like to proceed without enabling strict aliasing and want to recycle
this CL, you can edit its description and drop the .gyp changes that enable
-fstrict-aliasing.

Since you’re messing with the CMSG code in some of these cases such as
quic_socket_utils.cc, I’d suggest adding validation that the data length is
either equal to or greater than the expected length for the memcpy, as a DCHECK
or something along those lines. This could be similar to the checks in
crash_handler_host_linux.cc’s SCM_RIGHTS case checking that the data is
properly-sized. Since I’m looking at that code, do you want to do something
about the SCM_CREDENTIALS case too?

Powered by Google App Engine
This is Rietveld 408576698