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

Issue 484041: code review 484041: go/printer: fix a couple of hidden crashes that become (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by gri
Modified:
15 years ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

go/printer: fix a couple of hidden crashes that become visible only when enabling internal debug mode: - in rare cases expression depth can underflow - when printing a single labeled statement, indentation may underflow if not setup correctly

Patch Set 1 #

Patch Set 2 : code review 484041: go/printer: fix a couple of hidden crashes that become #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M src/pkg/go/printer/nodes.go View 4 chunks +12 lines, -3 lines 0 comments Download
M src/pkg/go/printer/printer.go View 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.golden View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.input View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.raw View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3
gri
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-03-12 21:55:45 UTC) #1
rsc
LGTM
15 years ago (2010-03-12 22:00:48 UTC) #2
gri
15 years ago (2010-03-12 22:01:55 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=b9de33e89abc ***

go/printer: fix a couple of hidden crashes that become
visible only when enabling internal debug mode:
- in rare cases expression depth can underflow
- when printing a single labeled statement, indentation
  may underflow if not setup correctly

R=rsc
CC=golang-dev
http://codereview.appspot.com/484041
Sign in to reply to this message.

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