Ticket #464 (closed Bug report: fixed)

Opened 7 months ago

Last modified 2 months ago

Make use strings are NUL-terminated after strncpy

Reported by: wichert@wiggy.net Assigned to:
Priority: high Milestone: Gateway 1.1.5
Component: Gateway Keywords:
Cc:

Description

If the source is longer than the output buffer strncpy(3) will not NUL-terminate the output buffer. This can have all kinds of disastrous effects.

Attachments

0001-strncpy-is-not-guaranteed-to-NUL-terminate-strings.patch (3.9 kB) - added by wichert@wiggy.net on 04/28/08 10:24:02.

Change History

04/28/08 10:24:02 changed by wichert@wiggy.net

  • attachment 0001-strncpy-is-not-guaranteed-to-NUL-terminate-strings.patch added.

06/29/08 18:26:04 changed by networkfusion

  • milestone changed from Not yet assigned to a Milestone to Gateway 1.1.5.

09/30/08 05:26:30 changed by wichert

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

Commited in r1371


Add/Change #464 (Make use strings are NUL-terminated after strncpy)




Action