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

Issue 1882043003: Blimp: add padding for zlib framing to buffer preallocation calculations. (Closed)

Created:
4 years, 8 months ago by Kevin M
Modified:
4 years, 8 months ago
Reviewers:
Wez
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: add padding for zlib framing to buffer preallocation calculations. Without the padding, messages with very low compression rates can exceed the size of the preallocated buffer, causing some trailing bytes to be written to subsequent messages. R=wez@chromium.org BUG=603213 Committed: https://crrev.com/581a3f83eeb9241f698095f552813c355f2426c2 Cr-Commit-Position: refs/heads/master@{#387152}

Patch Set 1 #

Total comments: 10

Patch Set 2 : wez feedback #

Patch Set 3 : wez feedback #

Total comments: 1

Patch Set 4 : Use RandBytesAsString() in unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M blimp/net/compressed_packet_unittest.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M blimp/net/compressed_packet_writer.cc View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 24 (11 generated)
Kevin M
4 years, 8 months ago (2016-04-12 23:45:34 UTC) #1
Wez
Just some nits to iron out, basically. https://codereview.chromium.org/1882043003/diff/1/blimp/net/compressed_packet_unittest.cc File blimp/net/compressed_packet_unittest.cc (right): https://codereview.chromium.org/1882043003/diff/1/blimp/net/compressed_packet_unittest.cc#newcode25 blimp/net/compressed_packet_unittest.cc:25: const char ...
4 years, 8 months ago (2016-04-12 23:54:35 UTC) #2
Kevin M
https://codereview.chromium.org/1882043003/diff/1/blimp/net/compressed_packet_unittest.cc File blimp/net/compressed_packet_unittest.cc (right): https://codereview.chromium.org/1882043003/diff/1/blimp/net/compressed_packet_unittest.cc#newcode25 blimp/net/compressed_packet_unittest.cc:25: const char kLargeIncompressiblePayload[] = On 2016/04/12 23:54:34, Wez wrote: ...
4 years, 8 months ago (2016-04-13 00:53:35 UTC) #3
Wez
lgtm https://codereview.chromium.org/1882043003/diff/40001/blimp/net/compressed_packet_unittest.cc File blimp/net/compressed_packet_unittest.cc (right): https://codereview.chromium.org/1882043003/diff/40001/blimp/net/compressed_packet_unittest.cc#newcode164 blimp/net/compressed_packet_unittest.cc:164: // Write two incompressible (high entropy) blocks. nit: ...
4 years, 8 months ago (2016-04-13 01:11:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882043003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882043003/40001
4 years, 8 months ago (2016-04-13 01:11:22 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/49870) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-04-13 01:26:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882043003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882043003/60001
4 years, 8 months ago (2016-04-13 18:57:07 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/50322)
4 years, 8 months ago (2016-04-13 19:08:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882043003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882043003/60001
4 years, 8 months ago (2016-04-13 19:56:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/50374)
4 years, 8 months ago (2016-04-13 20:08:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882043003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882043003/60001
4 years, 8 months ago (2016-04-13 23:38:45 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-13 23:47:11 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 23:48:05 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/581a3f83eeb9241f698095f552813c355f2426c2
Cr-Commit-Position: refs/heads/master@{#387152}

Powered by Google App Engine
This is Rietveld 408576698