Project

General

Profile

Bug #1979

mod_webdav doesn't support put of files over 2GB

Added by kenny over 8 years ago. Updated 9 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_webdav
Target version:
Start date:
2009-05-10
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Line 1840 of mod_webdav reads :
int r = 0;

but should use a more suitable type for files greater than 2GB, i.e.
off_t r = 0;

This results in file truncation for files over 2GB.

History

#1

Updated by stbuehler over 8 years ago

  • Status changed from New to Need Feedback
  • Target version deleted (1.4.24)
  • Estimated time deleted (0.10 h)
  • Patch available changed from Yes to No
  1. "int r = 0" is in line 1711 - and there haven't been big changes since the latest versions... so perhaps your version is too old?
  2. r is only used as size for one chunk. And i doubt a single (incoming) chunk is too big for int.
  3. On 32-bit platforms the limits comes from request.c (it checks for SSIZE_MAX); i don't think i will remove that...
#2

Updated by gstrauss over 1 year ago

  • Status changed from Need Feedback to Missing Feedback
#3

Updated by kenny over 1 year ago

Fine for you to close this, as I'm no longer using it. Line no's had changed yes, we were using a modified version in an unusual config on 64 bit, so as you point out not relevant.

#4

Updated by gstrauss 9 months ago

  • Status changed from Missing Feedback to Fixed
  • Target version set to 1.4.x

fixed in lighttpd 1.4.40

Also available in: Atom