]> Cypherpunks repositories - gostls13.git/commit
os: add check for empty executable path on darwin
authorRoberto Clapis <robclap8@gmail.com>
Thu, 2 Aug 2018 13:27:14 +0000 (15:27 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 2 Aug 2018 20:31:25 +0000 (20:31 +0000)
commitfaadda040d49c581a82fc459c34186c8bff58a2b
tree39dfa98ff172b5679b49b06d3ea4ca19547895d1
parentb3b2f5d9cad01a23622287028fe8c57d59559169
os: add check for empty executable path on darwin

os used to panic (access out of bounds) if executablePath was left empty

Fixes #22529

Change-Id: Iead5e60a3b000dbde421a8e8612c3690340879ce
Reviewed-on: https://go-review.googlesource.com/127546
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/executable_darwin.go