summaryrefslogtreecommitdiff
path: root/misc/cgo/errors/malloc.go
Commit message (Collapse)AuthorAgeFilesLines
* misc/cgo/errors: fix malloc test for dragonflyIan Lance Taylor2016-10-251-1/+12
| | | | | | | | | | | | The Dragonfly libc returns a non-zero value for malloc(-1). Fixes #17585. Change-Id: Icfe68011ccbc75c676273ee3c3efdf24a520a004 Reviewed-on: https://go-review.googlesource.com/32050 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* cmd/cgo: throw if C.malloc returns nilIan Lance Taylor2016-10-251-0/+23
Change-Id: If7740ac7b6c4190db5a1ab4100d12cf16dc79c84 Reviewed-on: https://go-review.googlesource.com/31768 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>