[asterisk-bugs] [Asterisk 0013795]: [patch] Incorrect use of sizeof()

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 29 00:12:52 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13795 
====================================================================== 
Reported By:                andrew53
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13795
Category:                   Channels/chan_sip/General
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 152213 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-28 23:15 CDT
Last Modified:              2008-10-29 00:12 CDT
====================================================================== 
Summary:                    [patch] Incorrect use of sizeof()
Description: 
In process_sdp memcpy is called with sizeof(&sin.sin_addr): sizeof pointer
that is, rather than sin_addr. Luckily, there's nothing important after it
in the sockaddr_in structure.
====================================================================== 

---------------------------------------------------------------------- 
 (0094352) svnbot (reporter) - 2008-10-29 00:12
 http://bugs.digium.com/view.php?id=13795#c94352 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 152539

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r152539 | russell | 2008-10-29 00:12:51 -0500 (Wed, 29 Oct 2008) | 7 lines

Fix an incorrect usage of sizeof()

(closes issue http://bugs.digium.com/view.php?id=13795)
Reported by: andrew53
Patches:
	chan_sip_sizeof.patch uploaded by andrew53 (license 519)

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

http://svn.digium.com/view/asterisk?view=rev&revision=152539 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-29 00:12 svnbot         Checkin                                      
2008-10-29 00:12 svnbot         Note Added: 0094352                          
======================================================================




More information about the asterisk-bugs mailing list