Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Unused Value  at misc.c:799

Categories: LANG.STRUCT.UVAL CWE:563
Warning ID: 5689.28266
Procedure: strocpy
Trace: view
Modified: Thu Nov 26 11:08:25 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     
LineSource
  /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/misc.c
  Enter strocpy
789 int strocpy(char *dest, const char *src, size_t dstsize) 
790 {
791         if (dstsize == 0)
792                 return -1;
793  
794         while (*src != '\0' && dstsize > 1) {
795                 *dest++ = *src++;   /* Null Pointer Dereference (ID: 7246.28328) */
796                 dstsize--;
797         }
798  
799         *dest++ = '\0';     /* Unused Value */  /* Null Pointer Dereference (ID: 7247.28329) */
800         return *src == '\0' ? 0 : -1;
801 } 




Change Warning 5689.28266 : Unused Value

Priority:
State:
Finding:
Owner:
Note: