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

Issue 2907743003: Change CryptoHandshakeMessage::GetTaglist to tag a QuicTagVector* (Closed)

Created:
3 years, 6 months ago by Ryan Hamilton
Modified:
3 years, 6 months ago
Reviewers:
Jana, Nico
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org, Nico
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change CryptoHandshakeMessage::GetTaglist to tag a QuicTagVector* instead of a QuicTag** to avoid unaligned read problems on arm. Merge internal change: 157281990 BUG=726137 Review-Url: https://codereview.chromium.org/2907743003 Cr-Commit-Position: refs/heads/master@{#475255} Committed: https://chromium.googlesource.com/chromium/src/+/ebba10fb085b8b01e2faa64523bed3e5373f8b5e

Patch Set 1 #

Total comments: 7

Patch Set 2 : no parens #

Patch Set 3 : fix QuicConfig #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -136 lines) Patch
M net/quic/core/crypto/crypto_handshake_message.h View 1 chunk +2 lines, -7 lines 0 comments Download
M net/quic/core/crypto/crypto_handshake_message.cc View 2 chunks +11 lines, -7 lines 2 comments Download
M net/quic/core/crypto/crypto_server_test.cc View 2 chunks +8 lines, -11 lines 0 comments Download
M net/quic/core/crypto/crypto_utils.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M net/quic/core/crypto/quic_crypto_client_config.cc View 3 chunks +13 lines, -15 lines 0 comments Download
M net/quic/core/crypto/quic_crypto_server_config.cc View 1 6 chunks +32 lines, -56 lines 0 comments Download
M net/quic/core/crypto/quic_crypto_server_config_test.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/quic/core/quic_config.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M net/quic/core/quic_crypto_client_stream.cc View 2 chunks +7 lines, -11 lines 0 comments Download
M net/quic/core/quic_crypto_server_stream.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M net/tools/quic/stateless_rejector_test.cc View 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
Ryan Hamilton
jri: PTAL thakis: FYI
3 years, 6 months ago (2017-05-27 00:23:11 UTC) #2
Nico
Lgtm, thanks! https://codereview.chromium.org/2907743003/diff/1/net/quic/core/crypto/quic_crypto_server_config.cc File net/quic/core/crypto/quic_crypto_server_config.cc (right): https://codereview.chromium.org/2907743003/diff/1/net/quic/core/crypto/quic_crypto_server_config.cc#newcode1614 net/quic/core/crypto/quic_crypto_server_config.cc:1614: if (msg->GetTaglist(kAEAD, &(config->aead)) != QUIC_NO_ERROR) { Nit: ...
3 years, 6 months ago (2017-05-27 00:34:32 UTC) #8
Ryan Hamilton
Thanks! https://codereview.chromium.org/2907743003/diff/1/net/quic/core/crypto/quic_crypto_server_config.cc File net/quic/core/crypto/quic_crypto_server_config.cc (right): https://codereview.chromium.org/2907743003/diff/1/net/quic/core/crypto/quic_crypto_server_config.cc#newcode1614 net/quic/core/crypto/quic_crypto_server_config.cc:1614: if (msg->GetTaglist(kAEAD, &(config->aead)) != QUIC_NO_ERROR) { On 2017/05/27 ...
3 years, 6 months ago (2017-05-27 00:39:54 UTC) #9
Nico
lgtm++
3 years, 6 months ago (2017-05-27 00:51:32 UTC) #12
Ryan Hamilton
Thanks for the review! landing now... Go go gadget -Oz! https://codereview.chromium.org/2907743003/diff/1/net/quic/core/quic_config.cc File net/quic/core/quic_config.cc (left): https://codereview.chromium.org/2907743003/diff/1/net/quic/core/quic_config.cc#oldcode238 ...
3 years, 6 months ago (2017-05-28 01:29:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2907743003/40001
3 years, 6 months ago (2017-05-28 03:21:42 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/ebba10fb085b8b01e2faa64523bed3e5373f8b5e
3 years, 6 months ago (2017-05-28 04:24:22 UTC) #25
Jana
lgtm Late, but LGTM
3 years, 6 months ago (2017-05-30 02:57:06 UTC) #26
Nico
https://codereview.chromium.org/2907743003/diff/40001/net/quic/core/crypto/crypto_handshake_message.cc File net/quic/core/crypto/crypto_handshake_message.cc (right): https://codereview.chromium.org/2907743003/diff/40001/net/quic/core/crypto/crypto_handshake_message.cc#newcode103 net/quic/core/crypto/crypto_handshake_message.cc:103: memcpy(&tag, it->second.data() + i * sizeof(tag), sizeof(tag)); A few ...
3 years, 6 months ago (2017-06-12 20:32:31 UTC) #27
Ryan Hamilton
3 years, 6 months ago (2017-06-12 20:48:41 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2907743003/diff/40001/net/quic/core/crypto/cr...
File net/quic/core/crypto/crypto_handshake_message.cc (right):

https://codereview.chromium.org/2907743003/diff/40001/net/quic/core/crypto/cr...
net/quic/core/crypto/crypto_handshake_message.cc:103: memcpy(&tag,
it->second.data() + i * sizeof(tag), sizeof(tag));
On 2017/06/12 20:32:31, Nico wrote:
> A few short weeks later, I suddenly remembered this CL and that I forgot to
> mention that you could've used
>
https://cs.chromium.org/chromium/src/base/bit_cast.h?type=cs&q=bit_cast+packa...
> here if you can depend on base.

Ooo! That's good to know. We can depend on base (though perhaps via a wrapper)
and it looks like we have this function internally too. There are quite a few
places where we do memcpys like this which would also be candidates for
bit_cast.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698