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

Issue 174083: code review 174083: pkg/xml: handle unexpected EOF while parsing and fix a ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by art
Modified:
14 years, 5 months ago
Reviewers:
CC:
rsc
Visibility:
Public.

Description

pkg/xml: handle unexpected EOF while parsing and fix a bug in name() mustgetc() reports unexpected EOF as SyntaxError. using mustgetc() seems to be a better approach than letting the caller handle unexpected EOF every time. name(): the second if statement should explicitly return ok==false.

Patch Set 1 #

Patch Set 2 : code review 174083: pkg/xml: handle unexpected EOF while parsing and fix a ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -27 lines) Patch
M src/pkg/xml/xml.go View 14 chunks +41 lines, -27 lines 0 comments Download
M src/pkg/xml/xml_test.go View 2 chunks +63 lines, -0 lines 0 comments Download

Messages

Total messages: 3
art
Hello rsc, I'd like you to review the following change.
14 years, 5 months ago (2009-12-13 11:35:55 UTC) #1
rsc
LGTM thanks
14 years, 5 months ago (2009-12-15 03:27:20 UTC) #2
rsc
14 years, 5 months ago (2009-12-15 03:28:39 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=2701d4abb3f2 ***

xml: handle unexpected EOF while parsing and fix a bug in name

mustgetc reports unexpected EOF as SyntaxError.  using
mustgetc seems to be a better approach than letting the
caller handle unexpected EOF every time.

name: the second if statement should explicitly return
ok==false.

R=rsc
http://codereview.appspot.com/174083

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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