[asterisk-bugs] [Gastman 0011352]: Wrong argument in strncpy() causes problems with ztdynamic clients
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Nov 27 16:18:20 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11352
======================================================================
Reported By: brettcar
Assigned To:
======================================================================
Project: Gastman
Issue ID: 11352
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Zaptel Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 3245
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 11-22-2007 14:26 CST
Last Modified: 11-27-2007 16:18 CST
======================================================================
Summary: Wrong argument in strncpy() causes problems with
ztdynamic clients
Description:
In ztdynamic.c:614 the line is
strncpy(z->dname, zds->driver, sizeof(z->driver) - 1);
Clearly the argument in sizeof() is returning the wrong information here.
If drivers with long names are used ztdynamic will only copy a subset of
the name into z->dname. Essentially, z->dname is getting truncated.
======================================================================
----------------------------------------------------------------------
eliel - 11-27-07 16:18
----------------------------------------------------------------------
You are right, I review the code and the driver name is being truncated.
Issue History
Date Modified Username Field Change
======================================================================
11-27-07 16:18 eliel Note Added: 0074441
======================================================================
More information about the asterisk-bugs
mailing list