• Russ Cox's avatar
    runtime: fix 1-byte return during x.(T) for 0-byte T · d646040f
    Russ Cox authored
    The 1-byte write was silently clearing a byte on the stack.
    If there was another function call with more arguments
    in the same stack frame, no harm done.
    Otherwise, if the variable at that location was already zero,
    no harm done.
    Otherwise, problems.
    
    Fixes #8139.
    
    LGTM=dsymonds
    R=golang-codereviews, dsymonds
    CC=golang-codereviews, iant, r
    https://golang.org/cl/100940043
    d646040f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...