Commit 066ac42
reflect: clear ptrToThis in Ptr when allocating result on heap
Otherwise, calling PtrTo on the result will fail.
Fixes #19003
Change-Id: I8d7d1981a5d0417d5aee52740469d71e90734963
Reviewed-on: https://go-review.googlesource.com/36731
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>1 parent 78e6abd commit 066ac42
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
2481 | 2488 | | |
2482 | 2489 | | |
2483 | | - | |
| 2490 | + | |
2484 | 2491 | | |
2485 | 2492 | | |
2486 | 2493 | | |
2487 | 2494 | | |
2488 | 2495 | | |
2489 | 2496 | | |
2490 | | - | |
2491 | | - | |
| 2497 | + | |
| 2498 | + | |
2492 | 2499 | | |
2493 | 2500 | | |
2494 | 2501 | | |
| |||
6053 | 6060 | | |
6054 | 6061 | | |
6055 | 6062 | | |
6056 | | - | |
6057 | 6063 | | |
6058 | 6064 | | |
6059 | 6065 | | |
| |||
6086 | 6092 | | |
6087 | 6093 | | |
6088 | 6094 | | |
6089 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
| 1466 | + | |
1466 | 1467 | | |
1467 | 1468 | | |
1468 | 1469 | | |
| |||
0 commit comments