[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
Fri Jan 28 22:10:04 CST 2011


The following issue has been SUBMITTED. 
====================================================================== 
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:                     new
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-28 22:10 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-28 22:10 jjoshua        New Issue                                    
2011-01-28 22:10 jjoshua        Asterisk Version          => Older 1.6.2 -
please test a newer version
2011-01-28 22:10 jjoshua        Regression                => No              
2011-01-28 22:10 jjoshua        SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.2           
2011-01-28 22:10 jjoshua        SVN Revision (number only!) => 249895          
======================================================================




More information about the asterisk-bugs mailing list