Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(272)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 4631088: code review 4631088: crypto/openpgp: fixed dangerous use of for loop variable

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by gjredelinghuys
Modified:
14 years, 6 months ago
Reviewers:
agl1
CC:
golang-dev, r2, agl1
Visibility:
Public.
crypto/openpgp: fixed dangerous use of for loop variable In function readSignedMessage a pointer to for loop variable 'key' was incorrectly being assigned to md.SignedBy. Changed so that md.SignedBy is pointing to the 'more correct' memory position.

Patch Set 1 #

Patch Set 2 : diff -r bb79fe092dda https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r bb79fe092dda https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r bb79fe092dda https://go.googlecode.com/hg/ #

Created: 14 years, 6 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/pkg/crypto/openpgp/read.go View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
Total messages: 8
|
gjredelinghuys
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 6 months ago (2011年07月05日 09:31:26 UTC) #1
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://go.googlecode.com/hg/ 
Sign in to reply to this message.
r2
Thanks. This is such a small CL it might not be worth your trouble to ...
14 years, 6 months ago (2011年07月05日 09:35:27 UTC) #2
Thanks. This is such a small CL it might not be worth your trouble to do the
license assignment stuff to be an official contributor to the Go project. If
you'd like to do that, by all means do so, but if not, I'd be happy to make and
commit these changes for you.
-rob
Sign in to reply to this message.
gjredelinghuys
I'm planning on using Google Go for a long time to come, so I think ...
14 years, 6 months ago (2011年07月05日 09:41:51 UTC) #3
I'm planning on using Google Go for a long time to come, so I think I'd like
to go through the license assignment stuff :). Where do I start (not able to
find a link on any of Google Go pages) ?
On 5 July 2011 11:35, Rob 'Commander' Pike <r@google.com> wrote:
> Thanks. This is such a small CL it might not be worth your trouble to do
> the license assignment stuff to be an official contributor to the Go
> project. If you'd like to do that, by all means do so, but if not, I'd be
> happy to make and commit these changes for you.
>
> -rob
>
>
Sign in to reply to this message.
r2
On 05/07/2011, at 7:41 PM, Gideon Redelinghuys wrote: > I'm planning on using Google Go ...
14 years, 6 months ago (2011年07月05日 09:54:58 UTC) #4
On 05/07/2011, at 7:41 PM, Gideon Redelinghuys wrote:
> I'm planning on using Google Go for a long time to come, so I think I'd like
to go through the license assignment stuff :). Where do I start (not able to
find a link on any of Google Go pages) ?
Follow the instructions at http://golang.org/doc/contribute.html, and be sure to
read the section on Copyright.
-rob
Sign in to reply to this message.
agl1
On Tue, Jul 5, 2011 at 5:31 AM, <gjredelinghuys@gmail.com> wrote: > crypto/openpgp: fixed dangerous use ...
14 years, 6 months ago (2011年07月05日 14:59:38 UTC) #5
On Tue, Jul 5, 2011 at 5:31 AM, <gjredelinghuys@gmail.com> wrote:
> crypto/openpgp: fixed dangerous use of for loop variable
The bug is that there's no break after "md.SignedBy = "..., so please
put that in. I'm also happy with not taking a pointer to the loop
variable so changing the RHS to &keys[i] is still good.
Cheers
AGL
Sign in to reply to this message.
gjredelinghuys
Hello golang-dev@googlegroups.com, r@google.com, agl@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2011年07月05日 15:07:29 UTC) #6
Sign in to reply to this message.
agl1
LGTM
14 years, 6 months ago (2011年07月05日 15:13:25 UTC) #7
LGTM
Sign in to reply to this message.
r
*** Submitted as http://code.google.com/p/go/source/detail?r=e75c257edeb9 *** crypto/openpgp: fixed dangerous use of for loop variable In function ...
14 years, 6 months ago (2011年07月07日 00:49:09 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=e75c257edeb9 ***
crypto/openpgp: fixed dangerous use of for loop variable
In function readSignedMessage a pointer to for loop variable 'key' was
incorrectly being assigned
to md.SignedBy. Changed so that md.SignedBy is pointing to the 'more correct'
memory position.
R=golang-dev, r, agl
CC=golang-dev
http://codereview.appspot.com/4631088
Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /