Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Unused Value  at misc.c:799

Categories: LANG.STRUCT.UVAL CWE:563
Warning ID: 2120.2121
Procedure: strocpy
Trace: View
Modified: Wed Sep 2 11:51:21 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
  /u1/paul/SATE/2010/c/irssi/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: 2180.2185) */
796                 dstsize--;
797         }
798  
799         *dest++ = '\0';     /* Unused Value */  /* Null Pointer Dereference (ID: 2181.2186) */
800         return *src == '\0' ? 0 : -1;
801 




Change Warning 2120.2121 : Unused Value

Priority:
State:
Finding:
Owner:
Note: