CWARN.INCL.ABSOLUTEAbsolute path is used in include directiveThe CWARN.INCL.ABSOLUTE checker finds instances in which an absolute path is used as a header name. Vulnerability and riskHeader file inclusion should never use an absolute path. The directory path should be specified in the compiler options. Vulnerable code example1 #include "D:\\Work\\Projects\\TheBest\\common.h" Klocwork flags this example because the absolute path is used in the include statement. |