Project

General

Profile

Actions

Bug #1979

closed

mod_webdav doesn't support put of files over 2GB

Added by kenny over 15 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_webdav
Target version:
ASK QUESTIONS IN Forums:

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.

Actions #1

Updated by stbuehler over 15 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...
Actions #2

Updated by gstrauss over 8 years ago

  • Status changed from Need Feedback to Missing Feedback
Actions #3

Updated by kenny over 8 years 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.

Actions #4

Updated by gstrauss over 7 years ago

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

fixed in lighttpd 1.4.40

Actions

Also available in: Atom