Project

General

Profile

Actions

Bug #3238

closed

Type error in sendfile configure probe

Added by fweimer 11 months ago. Updated 11 months ago.

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

Description

The Linux sendfile function expects an off_t * argument, not an int * argument. The patch avoids a stack out-of-bounds write in this run-time test, and a compiler error with future compilers such as GCC 14.

An alternative fix could pass 0 for the parameter.


Files

lighttpd-configure-c99.patch (479 Bytes) lighttpd-configure-c99.patch fweimer, 2023-12-19 08:02
Actions #1

Updated by gstrauss 11 months ago

  • Category set to core
  • Status changed from New to Patch Pending
  • Target version changed from 1.4.xx to 1.4.74

Thanks. Yes, you are correct. The lighttpd code in src/network_write.c uses off_t with sendfile()

Actions #2

Updated by gstrauss 11 months ago

  • Category changed from core to build_autotools
Actions #3

Updated by gstrauss 11 months ago

  • Status changed from Patch Pending to Fixed
Actions

Also available in: Atom