summaryrefslogtreecommitdiffstats
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authorori <ori@openbsd.org>2018-10-24 05:19:03 +0000
committerori <ori@openbsd.org>2018-10-24 05:19:03 +0000
commited9943e8c0ded54245a70243f75e82daa51f3670 (patch)
tree821c22f25acb024ed15901afac14ec6694129c39 /bin/csh/csh.c
parentThe ctags(1) file format uses whitespace as a field delimiter, and (diff)
downloadwireguard-openbsd-ed9943e8c0ded54245a70243f75e82daa51f3670.tar.xz
wireguard-openbsd-ed9943e8c0ded54245a70243f75e82daa51f3670.zip
Fix qcow2 disk images for data sizes greater than 4 gigs.
We used to truncate the disk end by anding it with a 32 bit value. The 32 bit value was not sign extended, which causes the disk size to wrap at 4 gigabytes: disk->end = (disk->end + disk->clustersz - 1) & ~(disk->clustersz - 1); This change converts the clustersz to an off_t in order to remove the class of errors by avoiding type conversions entirely.
Diffstat (limited to 'bin/csh/csh.c')
0 files changed, 0 insertions, 0 deletions