Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Buffer Overrun  at pvmcruft.c:718

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 30.28613
Procedure: inadport_decimal
Trace: view
Modified: Thu Nov 26 11:27:05 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /kat0/fletcher/SATE/2010/pvm3/src/pvmcruft.c
   Enter inadport_decimal
 705 char * 
 706 inadport_decimal(sad) 
 707         struct sockaddr_in *sad;
 708 {
 709         static char buf[32];
 710         int a;
 711  
 712         a = ntohl(0xffffffff & sad->sin_addr.s_addr);
 713         sprintf(buf, "%d.%d.%d.%d:%d",
 714                         0xff & (a >> 24),
 715                         0xff & (a >> 16),
 716                         0xff & (a >> 8),
 717                         0xff & a,
true718                         0xffff & (int)ntohs(sad->sin_port));     /* Buffer Overrun */
Postconditions
__x' = sad->sin_port
a' = __v'




Change Warning 30.28613 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: