Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 106.28708
Procedure: inadport_hex
Trace: view
Modified: Thu Nov 26 11:27:31 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_hex
 728 char * 
 729 inadport_hex(sad) 
 730         struct sockaddr_in *sad;
 731 {
 732         static char buf[16];
 733         int a;
 734  
 735         a = ntohl(0xffffffff & sad->sin_addr.s_addr);   /* Use After Free (ID: 22075.28904) */
true736         sprintf(buf, "%08x:%04x", a, 0xffff & (int)ntohs(sad->sin_port));     /* Buffer Overrun */
Postconditions
__x' = sad->sin_port
a' = __v'




Change Warning 106.28708 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: