Ticket #1235 (closed defect: fixed)

Opened 1 year ago

Last modified 9 months ago

NULL arg terminator in execl()/execle() is missing

Reported by: anonymous Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.5.x-svn
Severity: normal Keywords: sentinel null execl execle
Cc: Blocking:
Need Feedback: 0

Description

Some systems define NULL as a (void *) pointer, other systems just define it as 0.

On functions having a fixed number of arguments, this is not an issue. Thanks to the prototype, the NULL will be promoted to the right type to close the argument list.

But on functions with a variable number of arguments, if an integer object is used where a pointer is expected, bad things can happen. This is for instance the case on OpenBSD/amd64.

Here's a patch that fixes the execl()/execle() calls in Lighty 1.5 -SVN.

Attachments

fix-sentinel.patch (2.0 kB) - added by Frank DENIS on 06/14/2007 08:45:29 AM.
Fix for NULL-terminated argument lists

Change History

06/14/2007 08:45:29 AM changed by Frank DENIS

  • attachment fix-sentinel.patch added.

Fix for NULL-terminated argument lists

08/15/2007 11:48:10 AM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.
  • pending changed.

fixed in [1916] for trunk and [1872] for 1.4.x


Add/Change #1235 (NULL arg terminator in execl()/execle() is missing)




Change Properties
Action