Show
Ignore:
Timestamp:
06/08/09 21:12:46 (3 years ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
bae014d9f22e13f6115d53d154e6489f20ae00e4
Parents:
5987af1b79b0c1fbd4aa9d30a53ec6879853ece3
git-committer:
Neutron Soutmun <neo.neutron@…> (06/08/09 21:12:46)
Message:

Follow the flawfinder guideline

  • Reduce the vulnerability code by follow the advice of flawfinder.
  • Just finish one of the TODO lists.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/rh-task-memset.c

    raace70f r927d0c7  
    200200  switch (req->req_opt) { 
    201201    case RH_RADIUS_TERM_IDLE_TIMEOUT : 
    202       strcpy(cause, "idle timeout"); 
     202      strncpy(cause, "idle timeout", sizeof (cause)); 
    203203      break; 
    204204    case RH_RADIUS_TERM_SESSION_TIMEOUT : 
    205       strcpy(cause, "session timeout"); 
     205      strncpy(cause, "session timeout", sizeof (cause)); 
    206206      break; 
    207207    case RH_RADIUS_TERM_USER_REQUEST : 
    208       strcpy(cause, "user request"); 
     208      strncpy(cause, "user request", sizeof (cause)); 
    209209      break; 
    210210    case RH_RADIUS_TERM_NAS_REBOOT : 
    211       strcpy(cause, "nas reboot"); 
     211      strncpy(cause, "nas reboot", sizeof (cause)); 
    212212      break; 
    213213    case RH_RADIUS_TERM_ADMIN_RESET : 
    214       strcpy(cause, "admin reset"); 
     214      strncpy(cause, "admin reset", sizeof (cause)); 
    215215      break; 
    216216  }