[Home]

Summary:ASTERISK-10831: Fix for buil unistim in dev_mode (array subscript is above array bounds)
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2007-11-19 21:06:54.000-0600Date Closed:2007-11-21 10:21:57.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Channels/chan_unistim
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) unistim.patch
( 1) unistim-2.patch
Description:String defined to have length TEXT_LENGTH_MAX+1, therefore last index is TEXT_LENGTH_MAX, not TEXT_LENGTH_MAX+1. This looks like copy-paste error
Comments:By: Igor Goncharovsky (igorg) 2007-11-19 21:12:12.000-0600

Sorry, first uploaded patch is not full.

By: Digium Subversion (svnbot) 2007-11-21 10:21:56.000-0600

Repository: asterisk
Revision: 89484

U   trunk/channels/chan_unistim.c

------------------------------------------------------------------------
r89484 | russell | 2007-11-21 10:21:55 -0600 (Wed, 21 Nov 2007) | 9 lines

Fix some code that was supposed to ensure that a buffer was terminated, but was
writing to the wrong byte.  Also, remove some non-thread safe test code.

(closes issue ASTERISK-10831)
Reported by: IgorG
Patches:
     unistim-2.patch uploaded by IgorG (license 20)
 - additional changes by me

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