aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-12-09 18:25:05 -0500
committerCherry Zhang <cherryyz@google.com>2020-12-10 15:37:19 +0000
commit0aba8f24cb1f38beb01491bc91697617ea0ce55b (patch)
tree1cd16fda17ff9584714a1f930120a01d11b85ccb /src/database/sql
parent6c64b6db6802818dd9a4789cdd564f19b70b6b4c (diff)
downloadgo-0aba8f24cb1f38beb01491bc91697617ea0ce55b.tar.xz
cmd/link: truncate file after code signature
When external linking, in case that the external linker generates a code signature with a different size (e.g. as it uses a different identifier), truncate the file after rewriting the code signature, to make sure that no bytes after the signature (which will invalidate the signature). Fixes #43105. Change-Id: I732f949fedd6de42d9f3cf6d017f7ba3f4e59e7a Reviewed-on: https://go-review.googlesource.com/c/go/+/276693 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions