[asterisk-bugs] [Asterisk 0018707]: Casting alignment problem in send_client causes bad seq to be generated on ARM platform

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 31 15:24:31 CST 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18707 
====================================================================== 
Reported By:                jjoshua
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18707
Category:                   Channels/chan_unistim
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           Older 1.6.2 - please test a newer version 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 249895 
Request Review:              
====================================================================== 
Date Submitted:             2011-01-28 22:10 CST
Last Modified:              2011-01-31 15:24 CST
====================================================================== 
Summary:                    Casting alignment problem in send_client causes bad
seq to be generated on ARM platform
Description: 
In send_client(), a char array is cast as a short array.  If the char array
starts on an odd byte, the short array cast will not be aligned properly
and setting the seq into the array will not be the expected result.

This happens on the ARM platform.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-31 15:24 lmadsen        Description Updated                          
2011-01-31 15:24 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list