]> Cypherpunks repositories - gostls13.git/commit
runtime: make pcln table check not trigger next to foreign code
authorRuss Cox <rsc@golang.org>
Thu, 23 Jul 2015 06:23:14 +0000 (02:23 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 23 Jul 2015 14:14:22 +0000 (14:14 +0000)
commit74ec5bf2d88364a9f29ab0468a3285e82abe5eb9
tree081b36f34c92a808bfca8aa3af2f1af8c7c65eb0
parentaad4fe4d8fd455a345c5cedb06ad3b400d8cb5ec
runtime: make pcln table check not trigger next to foreign code

Foreign code can be arbitrarily aligned,
so the function before it can have
arbitrarily much padding.
We can't call pcvalue on values in the padding.

Fixes #11653.

Change-Id: I7d57f813ae5a2409d1520fcc909af3eeef2da131
Reviewed-on: https://go-review.googlesource.com/12550
Reviewed-by: Rob Pike <r@golang.org>
src/runtime/symtab.go