[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:33:53 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:33 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:33  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 2100

_U  trunk/
U   trunk/ztcfg.c

------------------------------------------------------------------------
r2100 | russell | 2008-06-07 12:33:10 -0500 (Sat, 07 Jun 2008) | 12 lines

Merged revisions 2099 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.4

........
r2099 | russell | 2007-02-07 10:51:27 -0600 (Wed, 07 Feb 2007) | 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=2100 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 12:33  svnbot         Checkin                                      
06-07-08 12:33  svnbot         Note Added: 0088238                          
======================================================================




More information about the asterisk-bugs mailing list