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

Issue 100940043: code review 100940043: runtime: fix 1-byte return during x.(T) for 0-byte T (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rsc
Modified:
10 years, 11 months ago
Reviewers:
dsymonds
CC:
golang-codereviews, dsymonds, iant, r
Visibility:
Public.

Description

runtime: fix 1-byte return during x.(T) for 0-byte T The 1-byte write was silently clearing a byte on the stack. If there was another function call with more arguments in the same stack frame, no harm done. Otherwise, if the variable at that location was already zero, no harm done. Otherwise, problems. Fixes issue 8139.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -4 lines) Patch
M src/pkg/runtime/iface.goc View 1 2 chunks +19 lines, -4 lines 0 comments Download
A test/fixedbugs/issue8139.go View 1 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-codereviews@googlegroups.com (cc: iant, r), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-06-03 00:34:11 UTC) #1
dsymonds
LGTM
10 years, 11 months ago (2014-06-03 01:04:43 UTC) #2
rsc
10 years, 11 months ago (2014-06-03 01:06:32 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=93baf7bea171 ***

runtime: fix 1-byte return during x.(T) for 0-byte T

The 1-byte write was silently clearing a byte on the stack.
If there was another function call with more arguments
in the same stack frame, no harm done.
Otherwise, if the variable at that location was already zero,
no harm done.
Otherwise, problems.

Fixes issue 8139.

LGTM=dsymonds
R=golang-codereviews, dsymonds
CC=golang-codereviews, iant, r
https://codereview.appspot.com/100940043
Sign in to reply to this message.

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