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

Issue 12226071: Fix RC4 reads/writes outside array bounds. (Closed)

Created:
7 years, 10 months ago by wtc
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix RC4 reads/writes outside array bounds. Encrypt one byte at a time before and after the main loop that encrypts one word at a time. Use rc4_wordconv for x86 on all operating systems. Improve error reporting. R=rsleevi@chromium.org BUG=174140 TEST=none

Patch Set 1 #

Patch Set 2 : Updare comments to reflect new code, remove old comments about UMR #

Total comments: 6

Patch Set 3 : Enable the code for Windows, fix compilation errors #

Total comments: 4

Patch Set 4 : Replace memcpy with reading bytes and shifting, use better error codes #

Total comments: 5

Patch Set 5 : Add a patch file and update README.chromium #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -102 lines) Patch
M README.chromium View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M mozilla/security/nss/lib/freebl/arcfour.c View 1 2 3 4 15 chunks +66 lines, -102 lines 0 comments Download
A patches/nss-arcfour.patch View 1 2 3 4 1 chunk +303 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wtc
https://codereview.chromium.org/12226071/diff/3001/mozilla/security/nss/lib/freebl/arcfour.c File mozilla/security/nss/lib/freebl/arcfour.c (left): https://codereview.chromium.org/12226071/diff/3001/mozilla/security/nss/lib/freebl/arcfour.c#oldcode384 mozilla/security/nss/lib/freebl/arcfour.c:384: register WORD streamWord, mask; |mask| is used to mask ...
7 years, 10 months ago (2013-02-08 17:15:55 UTC) #1
wtc
Please review patch set 3. I introduced an artificial bug and the NSS tests still ...
7 years, 10 months ago (2013-02-08 17:46:43 UTC) #2
Ryan Sleevi
This LGTM as a functional equivalent, but one area I'm particularly weak on is grokking ...
7 years, 10 months ago (2013-02-08 19:32:47 UTC) #3
wtc
Please review patch set 4. Thanks. The memcpy calls are gone. The for loops that ...
7 years, 10 months ago (2013-02-09 01:38:25 UTC) #4
PaulePantert
Thank you Wan-Teh for your effort. Could you please split this patch up if it ...
7 years, 10 months ago (2013-02-09 09:23:49 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/12226071/diff/8001/mozilla/security/nss/lib/freebl/arcfour.c File mozilla/security/nss/lib/freebl/arcfour.c (right): https://codereview.chromium.org/12226071/diff/8001/mozilla/security/nss/lib/freebl/arcfour.c#newcode366 mozilla/security/nss/lib/freebl/arcfour.c:366: unsigned int outOffset = (PRUword)output % WORDSIZE; I'm not ...
7 years, 10 months ago (2013-02-11 18:50:35 UTC) #6
wtc
pm.debian: thank you for your comments. This changelist is mainly for code review. I can ...
7 years, 10 months ago (2013-02-11 19:14:05 UTC) #7
Ryan Sleevi
lgtm
7 years, 10 months ago (2013-02-11 19:17:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/12226071/6002
7 years, 10 months ago (2013-02-14 23:44:45 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 23:45:00 UTC) #10
Message was sent while issue was closed.
Change committed as 182577

Powered by Google App Engine
This is Rietveld 408576698