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

Issue 940044: code review 940044: Freetype-Go: truetype parser initial check-in. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by nigeltao
Modified:
14 years, 7 months ago
Reviewers:
CC:
r, rsc, golang-dev
Visibility:
Public.

Description

Freetype-Go: truetype parser initial check-in. Parsing a malformed TTF may result in an index out-of-bounds panic, rather than guaranteeing to return an error. This may be tightened in the future.

Patch Set 1 #

Patch Set 2 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Total comments: 13

Patch Set 3 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Patch Set 4 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Total comments: 7

Patch Set 5 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Total comments: 5

Patch Set 6 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Total comments: 1

Patch Set 7 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Patch Set 8 : code review 940044: Freetype-Go: truetype parser initial check-in. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -0 lines) Patch
A example/truetype/main.go View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
A freetype/truetype/Makefile View 1 chunk +13 lines, -0 lines 0 comments Download
A freetype/truetype/truetype.go View 1 2 3 4 5 6 1 chunk +546 lines, -0 lines 0 comments Download

Messages

Total messages: 15
nigeltao
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 8 months ago (2010-04-23 15:26:52 UTC) #1
r
http://codereview.appspot.com/940044/diff/2001/3001 File example/truetype/main.go (right): http://codereview.appspot.com/940044/diff/2001/3001#newcode17 example/truetype/main.go:17: var fontfile *string = flag.String("fontfile", "/usr/share/fonts/truetype/msttcorefonts/arial.ttf", "filename of the ...
14 years, 8 months ago (2010-04-23 17:23:51 UTC) #2
rsc
> http://codereview.appspot.com/940044/diff/2001/3001#newcode17 > example/truetype/main.go:17: var fontfile *string = > flag.String("fontfile", > "/usr/share/fonts/truetype/msttcorefonts/arial.ttf", "filename of the ...
14 years, 8 months ago (2010-04-23 17:29:20 UTC) #3
nigeltao
http://codereview.appspot.com/940044/diff/2001/3001 File example/truetype/main.go (right): http://codereview.appspot.com/940044/diff/2001/3001#newcode17 example/truetype/main.go:17: var fontfile *string = flag.String("fontfile", "/usr/share/fonts/truetype/msttcorefonts/arial.ttf", "filename of the ...
14 years, 8 months ago (2010-04-29 01:58:14 UTC) #4
rsc
> http://codereview.appspot.com/940044/diff/2001/3003#newcode360 > freetype/truetype/truetype.go:360: // A Point is a co-ordinate pair plus > whether it ...
14 years, 8 months ago (2010-04-29 02:43:45 UTC) #5
nigeltao_gnome
On 29 April 2010 12:43, Russ Cox <rsc@golang.org> wrote: > Sorry to contradict, but please ...
14 years, 8 months ago (2010-04-30 00:07:39 UTC) #6
r
http://codereview.appspot.com/940044/diff/14001/15001 File example/truetype/main.go (right): http://codereview.appspot.com/940044/diff/14001/15001#newcode17 example/truetype/main.go:17: var fontfile *string = flag.String("fontfile", "../../luxi-fonts/luxisr.ttf", "filename of the ...
14 years, 8 months ago (2010-04-30 00:15:17 UTC) #7
nigeltao
http://codereview.appspot.com/940044/diff/14001/15001 File example/truetype/main.go (right): http://codereview.appspot.com/940044/diff/14001/15001#newcode17 example/truetype/main.go:17: var fontfile *string = flag.String("fontfile", "../../luxi-fonts/luxisr.ttf", "filename of the ...
14 years, 8 months ago (2010-04-30 01:12:09 UTC) #8
nigeltao_gnome
Ping.
14 years, 7 months ago (2010-05-02 07:33:16 UTC) #9
rsc1
LGTM http://codereview.appspot.com/940044/diff/20001/21003 File freetype/truetype/truetype.go (right): http://codereview.appspot.com/940044/diff/20001/21003#newcode92 freetype/truetype/truetype.go:92: cmapStart, cmapEnd, cmapDelta, cmapOffset []uint16 Isn't this really ...
14 years, 7 months ago (2010-05-02 08:08:39 UTC) #10
r
LGTM but i still think you should try my suggestion with methods on a slice ...
14 years, 7 months ago (2010-05-02 15:38:43 UTC) #11
nigeltao
On 2010/05/02 15:38:43, r wrote: > LGTM but i still think you should try my ...
14 years, 7 months ago (2010-05-03 14:42:34 UTC) #12
r
LGTM
14 years, 7 months ago (2010-05-03 18:12:05 UTC) #13
rsc1
LGTM http://codereview.appspot.com/940044/diff/28001/29003 File freetype/truetype/truetype.go (right): http://codereview.appspot.com/940044/diff/28001/29003#newcode52 freetype/truetype/truetype.go:52: func (d *data) u32() uint32 { This is ...
14 years, 7 months ago (2010-05-03 18:16:37 UTC) #14
nigeltao
14 years, 7 months ago (2010-05-03 23:57:40 UTC) #15
*** Submitted as
http://code.google.com/p/freetype-go/source/detail?r=19783ba3c8e0 ***

Freetype-Go: truetype parser initial check-in.

Parsing a malformed TTF may result in an index out-of-bounds panic,
rather than guaranteeing to return an error. This may be tightened
in the future.

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

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