diff options
Diffstat (limited to 'src/runtime/asm_amd64p32.s')
-rw-r--r-- | src/runtime/asm_amd64p32.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/asm_amd64p32.s b/src/runtime/asm_amd64p32.s index a001a764e7..4b12f0191d 100644 --- a/src/runtime/asm_amd64p32.s +++ b/src/runtime/asm_amd64p32.s @@ -636,6 +636,9 @@ TEXT runtime·memclr(SB),NOSPLIT,$0-8 MOVQ BX, CX REP STOSB + // Note: we zero only 4 bytes at a time so that the tail is at most + // 3 bytes. That guarantees that we aren't zeroing pointers with STOSB. + // See issue 13160. RET TEXT runtime·getcallerpc(SB),NOSPLIT,$8-12 |