• Joe Tsai's avatar
    archive/tar: handle integer overflow on 32bit machines · 14204662
    Joe Tsai authored
    Most calls to strconv.ParseInt(x, 10, 0) should really be
    calls to strconv.ParseInt(x, 10, 64) in order to ensure that they
    do not overflow on 32b architectures.
    
    Furthermore, we should document a bug where Uid and Gid may
    overflow on 32b machines since the type is declared as int.
    
    Change-Id: I99c0670b3c2922e4a9806822d9ad37e1a364b2b8
    Reviewed-on: https://go-review.googlesource.com/28472
    Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    14204662
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...