summaryrefslogtreecommitdiff
path: root/sys/src/cmd/9660srv/dat.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-10-05 04:31:31 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-10-05 04:31:31 +0200
commit0e09795831f37b86206e4dc9b3a0ac8bcd90401e (patch)
tree22e593360937f5d58497f3aa46ee3791520ac767 /sys/src/cmd/9660srv/dat.h
parentec518776982d6d1173683a1108e7537fc329ed43 (diff)
dossrv: handle file offsets > 2^31
maximum file size is 4GB-1 as the file length is stored in a 32 bit long. make sure it doesnt overflow on write or or truncate. interpret the file length as unsigned. pass vlong to readfile()/writefile()/truncfile() so we can handle overflows and not just ignore the upper bits.
Diffstat (limited to 'sys/src/cmd/9660srv/dat.h')
0 files changed, 0 insertions, 0 deletions