Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Buffer Overrun  at hoster.c:790

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 2482.2510
Procedure: phase1
Trace: View
Modified: Wed Sep 2 12:39:48 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
   /u1/paul/SATE/2010/c/pvm/pvm3/src/hoster.c
   Enter phase1
 770 phase1(sp) 
 771         struct slot *sp;
 772 {
 773         struct hst *hp;
 774         char *hn;
 775         char *av[32];                   /* for rsh args */ 
 776         int ac;
 777         char buf[512];
 778         int pid = -1;                   /* pid of rsh */ 
 779         char *p;
 780  
 781 #ifndef NOREXEC 
 782         struct servent *se;
 783         static u_short execport = 0;
 784  
 785         if (!execport) {
true786                 if (!(se = getservbyname("exec", "tcp"))) {
 787                         pvmlogprintf("phase1() can't getservbyname(): %s\n", "exec");
 788                         pvmbailout(0);
 789                 }
bytes_after(se) < 20790                 execport = se->s_port;     /* Buffer Overrun */
Preconditions
execport = 0
Postconditions
pid' = -1
se' = &stored_servent.s_name
sp' = $param_1




Change Warning 2482.2510 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: