Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2644)

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

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by gjredelinghuys
Modified:
12 years, 10 months ago
Reviewers:
agl1
CC:
golang-dev, r2, agl1
Visibility:
Public.

Description

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/ #

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

Messages

Total messages: 8
gjredelinghuys
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2011-07-05 09:31:26 UTC) #1
r2
Thanks. This is such a small CL it might not be worth your trouble to ...
12 years, 10 months ago (2011-07-05 09:35:27 UTC) #2
gjredelinghuys
I'm planning on using Google Go for a long time to come, so I think ...
12 years, 10 months ago (2011-07-05 09:41:51 UTC) #3
r2
On 05/07/2011, at 7:41 PM, Gideon Redelinghuys wrote: > I'm planning on using Google Go ...
12 years, 10 months ago (2011-07-05 09:54:58 UTC) #4
agl1
On Tue, Jul 5, 2011 at 5:31 AM, <gjredelinghuys@gmail.com> wrote: > crypto/openpgp: fixed dangerous use ...
12 years, 10 months ago (2011-07-05 14:59:38 UTC) #5
gjredelinghuys
Hello golang-dev@googlegroups.com, r@google.com, agl@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2011-07-05 15:07:29 UTC) #6
agl1
LGTM
12 years, 10 months ago (2011-07-05 15:13:25 UTC) #7
r
12 years, 9 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.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b