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

Issue 7311061: code review 7311061: syscall: check for invalid characters in Setenv on Unix (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by speter
Modified:
11 years, 2 months ago
Reviewers:
CC:
golang-dev, iant, bradfitz
Visibility:
Public.

Description

syscall: check for invalid characters in Setenv on Unix On POSIX, '=' in key is explicitly invalid, and '\x00' in key/value is implicitly invalid.

Patch Set 1 #

Patch Set 2 : diff -r 67fd3609446a https://code.google.com/p/go #

Patch Set 3 : diff -r 67fd3609446a https://code.google.com/p/go #

Patch Set 4 : diff -r 67fd3609446a https://code.google.com/p/go #

Total comments: 2

Patch Set 5 : diff -r 7cb3730e3f37 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
A src/pkg/os/env_unix_test.go View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M src/pkg/syscall/env_unix.go View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6
speter
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 2 months ago (2013-02-08 13:43:40 UTC) #1
iant
I'm not sure whether this is necessary or not. https://codereview.appspot.com/7311061/diff/7001/src/pkg/syscall/env_unix.go File src/pkg/syscall/env_unix.go (right): https://codereview.appspot.com/7311061/diff/7001/src/pkg/syscall/env_unix.go#newcode74 src/pkg/syscall/env_unix.go:74: ...
11 years, 2 months ago (2013-02-08 14:50:32 UTC) #2
bradfitz
On Fri, Feb 8, 2013 at 6:50 AM, <iant@golang.org> wrote: > I'm not sure whether ...
11 years, 2 months ago (2013-02-08 15:28:49 UTC) #3
speter
Please take another look. > I'm not sure whether this is necessary or not. Not ...
11 years, 2 months ago (2013-02-08 17:20:39 UTC) #4
iant
LGTM
11 years, 2 months ago (2013-02-08 18:45:40 UTC) #5
iant
11 years, 2 months ago (2013-02-08 18:45:51 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=9d68dabd0026 ***

syscall: check for invalid characters in Setenv on Unix

On POSIX, '=' in key is explicitly invalid, and '\x00' in key/value is
implicitly invalid.

R=golang-dev, iant, bradfitz
CC=golang-dev
https://codereview.appspot.com/7311061

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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