]> Cypherpunks.ru repositories - gostls13.git/commit
plugin: resolve random crash when calling exported functions
authorTodd Neal <todd@tneal.org>
Tue, 11 Apr 2017 23:52:05 +0000 (18:52 -0500)
committerTodd Neal <todd@tneal.org>
Wed, 12 Apr 2017 12:34:25 +0000 (12:34 +0000)
commit758d078fd5ab423d00f5a46028139c1d13983120
tree5884001dd5059cad18b61ce4161d0bf602f330e0
parent092405a9affad56d18ee3d28b93b706c2887ba7d
plugin: resolve random crash when calling exported functions

open modified the plugin symbols map while ranging over it. This is
normally harmless, except that the operations performed were not
idempotent leading to function pointers being corrupted.

Fixes #19269

Change-Id: I4b6eb1d45567161412e4a34b41f1ebf647bcc942
Reviewed-on: https://go-review.googlesource.com/40431
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/plugin/plugin_dlopen.go