]> Cypherpunks repositories - gostls13.git/commit
runtime: fix crash in badsignal()
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 6 May 2013 23:15:03 +0000 (16:15 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 6 May 2013 23:15:03 +0000 (16:15 -0700)
commitf322c786923ebef0c012ff65df8bab767f0d1ace
treec3ff4adabfb5430a52fcd92e45652e13be9c21a0
parentb3b1efd88291c63b9717db190ded45df2ef8c243
runtime: fix crash in badsignal()
The linker can generate split stack prolog when a textflag 7 function
makes an indirect function call.  If it happens, badsignal() crashes
trying to dereference g.
Fixes #5337.

R=bradfitz, dave, adg, iant, r, minux.ma
CC=adonovan, golang-dev
https://golang.org/cl/9226043
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_freebsd.c
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_netbsd.c
src/pkg/runtime/os_openbsd.c