]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: avoid potential endless loop in float printing
authorRobert Griesemer <gri@golang.org>
Tue, 10 Nov 2015 19:32:26 +0000 (11:32 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 10 Nov 2015 20:36:52 +0000 (20:36 +0000)
commit50fa64677611313bdd343c1dab85bf0c297d21a4
treee4dbd272639094f1fba5782c273f378e64c215af
parent2fdff9586b9bd82be784e5f55cbf5a75e54b9b1f
cmd/compile/internal/gc: avoid potential endless loop in float printing

The compiler should not usually call Fconv with an infinity, but if
it does, Fconv will end in an endless loop. Test for infinities early.

Change-Id: I48f366466538b0bd26a851e01258725025babaff
Reviewed-on: https://go-review.googlesource.com/16777
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/mparith3.go