Project

General

Profile

Bug #2963

Updated by Victor Julien over 3 years ago

<pre> 
   CC         log-pcap.o 
 log-pcap.c:766:31: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
         strlcat(pattern, "/", PATH_MAX); 
                               ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:775:40: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
                 strlcat(pattern, part, PATH_MAX); 
                                        ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:786:43: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
                     strlcat(pattern, tmp, PATH_MAX); 
                                           ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:790:43: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
                     strlcat(pattern, "*", PATH_MAX); 
                                           ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:799:38: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
         strlcat(pattern, pl->prefix, PATH_MAX); 
                                      ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:800:32: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
         strlcat(pattern, ".*", PATH_MAX); 
                                ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 log-pcap.c:802:34: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(pattern) or lower 
     strlcat(pattern, pl->suffix, PATH_MAX); 
                                  ^~~~~~~~ 
 /usr/include/linux/limits.h:13:25: note: expanded from macro 'PATH_MAX' 
 #define PATH_MAX          4096      /* # chars in a path name including nul */ 
                         ^~~~ 
 7 warnings generated. 
 </pre>

Back