[asterisk-bugs] [Zaptel 0008992]: ztcfg prints garbage if channel does not support

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 12:32:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=8992 
====================================================================== 
Reported By:                tzafrir
Assigned To:                russell
====================================================================== 
Project:                    Zaptel
Issue ID:                   8992
Category:                   Utilities
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4 
SVN Revision (number only!): 2090 
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             02-06-2007 10:04 CST
Last Modified:              06-07-2008 12:32 CDT
====================================================================== 
Summary:                    ztcfg prints garbage if channel does not support
Description: 
The ioctl ZT_GETVERSION may fail, but its result is still used. This will
happen if you use userspace ztcfg from 1.4 with an older zaptel kernel
module.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 12:32  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 2099

U   branches/1.4/ztcfg.c

------------------------------------------------------------------------
r2099 | russell | 2008-06-07 12:32:33 -0500 (Sat, 07 Jun 2008) | 4 lines

In case the ZT_GETVERSION ioctl fails, ensure that the buffers are
initialized
to "Unknown" so that we don't try to print uninitialized string buffers.
(issue http://bugs.digium.com/view.php?id=8992, Oron Peled, tzafrir)

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=2099 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 12:32  svnbot         Note Added: 0088237                          
======================================================================




More information about the asterisk-bugs mailing list