Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/wp2latex-3.92/msvc/wp2lfuti.cpp Examining data/wp2latex-3.92/msvc/error.cpp Examining data/wp2latex-3.92/msvc/mtx_impl.cpp Examining data/wp2latex-3.92/msvc/dbllist.cpp Examining data/wp2latex-3.92/msvc/pass1_6.cpp Examining data/wp2latex-3.92/msvc/ras_jpg.cpp Examining data/wp2latex-3.92/msvc/pass1xml.cpp Examining data/wp2latex-3.92/msvc/wp2latex.cpp Examining data/wp2latex-3.92/msvc/igettext.cpp Examining data/wp2latex-3.92/msvc/wp2l_lib.cpp Examining data/wp2latex-3.92/msvc/pass1mtf.cpp Examining data/wp2latex-3.92/msvc/pass1.cpp Examining data/wp2latex-3.92/msvc/pass1c45.cpp Examining data/wp2latex-3.92/msvc/pass1_1.cpp Examining data/wp2latex-3.92/msvc/pass1htm.cpp Examining data/wp2latex-3.92/msvc/pass1wmf.cpp Examining data/wp2latex-3.92/msvc/filehnd.cpp Examining data/wp2latex-3.92/msvc/pass1602.cpp Examining data/wp2latex-3.92/msvc/imgsupp.cpp Examining data/wp2latex-3.92/msvc/pass1_5.cpp Examining data/wp2latex-3.92/msvc/pass2.cpp Examining data/wp2latex-3.92/msvc/cp-trn.cpp Examining data/wp2latex-3.92/msvc/ras_png.cpp Examining data/wp2latex-3.92/msvc/std_str.cpp Examining data/wp2latex-3.92/msvc/pass1ole.cpp Examining data/wp2latex-3.92/msvc/sets.cpp Examining data/wp2latex-3.92/msvc/raster.cpp Examining data/wp2latex-3.92/msvc/rasterut.cpp Examining data/wp2latex-3.92/msvc/pass1rtf.cpp Examining data/wp2latex-3.92/msvc/pass1acc.cpp Examining data/wp2latex-3.92/msvc/formulas.cpp Examining data/wp2latex-3.92/msvc/images.cpp Examining data/wp2latex-3.92/msvc/pass1dcb.cpp Examining data/wp2latex-3.92/msvc/strings.cpp Examining data/wp2latex-3.92/msvc/pass1_4.cpp Examining data/wp2latex-3.92/msvc/pass1_3.cpp Examining data/wp2latex-3.92/msvc/stack.cpp Examining data/wp2latex-3.92/msvc/lists.cpp Examining data/wp2latex-3.92/msvc/pass1wrd.cpp Examining data/wp2latex-3.92/msvc/cptran.cpp Examining data/wp2latex-3.92/msvc/pass1abi.cpp Examining data/wp2latex-3.92/msvc/charactr.cpp Examining data/wp2latex-3.92/doc/dump.c Examining data/wp2latex-3.92/sources.cc/cole/new_cole.c Examining data/wp2latex-3.92/sources.cc/cole/support.h Examining data/wp2latex-3.92/sources.cc/cole/internal.h Examining data/wp2latex-3.92/sources.cc/cole/cole.h Examining data/wp2latex-3.92/sources.cc/images.h Examining data/wp2latex-3.92/sources.cc/pass2.cc Examining data/wp2latex-3.92/sources.cc/atoms/strings.cc Examining data/wp2latex-3.92/sources.cc/atoms/include/stacks.h Examining data/wp2latex-3.92/sources.cc/atoms/include/common.h Examining data/wp2latex-3.92/sources.cc/atoms/include/stringa.h Examining data/wp2latex-3.92/sources.cc/atoms/include/sets.h Examining data/wp2latex-3.92/sources.cc/atoms/include/std_str.h Examining data/wp2latex-3.92/sources.cc/atoms/include/typedfs.h Examining data/wp2latex-3.92/sources.cc/atoms/include/matrix.cc Examining data/wp2latex-3.92/sources.cc/atoms/include/dbllist.h Examining data/wp2latex-3.92/sources.cc/atoms/include/matrix.h Examining data/wp2latex-3.92/sources.cc/atoms/include/struct.h Examining data/wp2latex-3.92/sources.cc/atoms/include/lists.h Examining data/wp2latex-3.92/sources.cc/atoms/include/m.cc Examining data/wp2latex-3.92/sources.cc/atoms/lists.cc Examining data/wp2latex-3.92/sources.cc/atoms/dbllist.cc Examining data/wp2latex-3.92/sources.cc/atoms/stack.cc Examining data/wp2latex-3.92/sources.cc/atoms/struct.c Examining data/wp2latex-3.92/sources.cc/atoms/std_str.cc Examining data/wp2latex-3.92/sources.cc/atoms/mtx_impl.cc Examining data/wp2latex-3.92/sources.cc/atoms/utf8.c Examining data/wp2latex-3.92/sources.cc/atoms/sets.cc Examining data/wp2latex-3.92/sources.cc/pass1wrd.cc Examining data/wp2latex-3.92/sources.cc/pass1mtf.cc Examining data/wp2latex-3.92/sources.cc/pass1_5.cc Examining data/wp2latex-3.92/sources.cc/cp_lib/cplib.cc Examining data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc Examining data/wp2latex-3.92/sources.cc/cp_lib/cptran.h Examining data/wp2latex-3.92/sources.cc/cp_lib/cptran.cc Examining data/wp2latex-3.92/sources.cc/pass1wmf.cc Examining data/wp2latex-3.92/sources.cc/pass1abi.cc Examining data/wp2latex-3.92/sources.cc/pass1602.cc Examining data/wp2latex-3.92/sources.cc/pass1xml.cc Examining data/wp2latex-3.92/sources.cc/pass1dcb.cc Examining data/wp2latex-3.92/sources.cc/pass1ole.cc Examining data/wp2latex-3.92/sources.cc/pass1c45.cc Examining data/wp2latex-3.92/sources.cc/word/bintree.h Examining data/wp2latex-3.92/sources.cc/word/wrd_type.h Examining data/wp2latex-3.92/sources.cc/word/bintree.c Examining data/wp2latex-3.92/sources.cc/word/wvparser.c Examining data/wp2latex-3.92/sources.cc/pass1acc.cc Examining data/wp2latex-3.92/sources.cc/pass1rtf.cc Examining data/wp2latex-3.92/sources.cc/pass1.cc Examining data/wp2latex-3.92/sources.cc/images/raster.cc Examining data/wp2latex-3.92/sources.cc/images/imageop.cc Examining data/wp2latex-3.92/sources.cc/images/filehnd.cc Examining data/wp2latex-3.92/sources.cc/images/vecimage.h Examining data/wp2latex-3.92/sources.cc/images/rasterut.cc Examining data/wp2latex-3.92/sources.cc/images/rasterc.c Examining data/wp2latex-3.92/sources.cc/images/imageop.h Examining data/wp2latex-3.92/sources.cc/images/ras_png.cc Examining data/wp2latex-3.92/sources.cc/images/ras_jpg.cc Examining data/wp2latex-3.92/sources.cc/images/imgsupp.h Examining data/wp2latex-3.92/sources.cc/images/imgsupp.cc Examining data/wp2latex-3.92/sources.cc/images/error.cc Examining data/wp2latex-3.92/sources.cc/images/vecimage.cc Examining data/wp2latex-3.92/sources.cc/images/raster.h Examining data/wp2latex-3.92/sources.cc/images/ras_prot.h Examining data/wp2latex-3.92/sources.cc/images/ras_img.cc Examining data/wp2latex-3.92/sources.cc/wp2latex.cc Examining data/wp2latex-3.92/sources.cc/pass1xml.h Examining data/wp2latex-3.92/sources.cc/formulas.cc Examining data/wp2latex-3.92/sources.cc/jobs/jobs.h Examining data/wp2latex-3.92/sources.cc/jobs/jobs.cc Examining data/wp2latex-3.92/sources.cc/jobs/job_fix.cc Examining data/wp2latex-3.92/sources.cc/jobs/csext.h Examining data/wp2latex-3.92/sources.cc/cp-trn.cc Examining data/wp2latex-3.92/sources.cc/pass1_4.cc Examining data/wp2latex-3.92/sources.cc/pass1htm.cc Examining data/wp2latex-3.92/sources.cc/wp2latex.h Examining data/wp2latex-3.92/sources.cc/igettext.cc Examining data/wp2latex-3.92/sources.cc/charactr.cc Examining data/wp2latex-3.92/sources.cc/pass1_1.cc Examining data/wp2latex-3.92/sources.cc/images.cc Examining data/wp2latex-3.92/sources.cc/wp2l_lib.cc Examining data/wp2latex-3.92/sources.cc/pass1_3.cc Examining data/wp2latex-3.92/sources.cc/pass1_6.cc Examining data/wp2latex-3.92/sources.cc/wp2lfuti.cc Examining data/wp2latex-3.92/instaler/inst_gt.cc Examining data/wp2latex-3.92/instaler/menucfg.cc FINAL RESULTS: data/wp2latex-3.92/sources.cc/atoms/include/common.h:133:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define vsnprintf _vsnprintf data/wp2latex-3.92/sources.cc/atoms/include/stringa.h:192:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int printf(const char* format, ...); data/wp2latex-3.92/sources.cc/atoms/strings.cc:867:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int string::printf(const char* format, ...) data/wp2latex-3.92/sources.cc/atoms/strings.cc:872:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size = vsnprintf(0, 0, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:874:10: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. size = vsprintf(NULL, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:883:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size = vsnprintf(ch, maxlen, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:885:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. size = vsprintf(ch, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:901:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int size2 = vsnprintf(0, 0, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:903:15: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. int size2 = vsprintf(NULL, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:912:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size2 = vsnprintf(ch+size, size2+1, format, paramList); data/wp2latex-3.92/sources.cc/atoms/strings.cc:914:13: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. size2 = vsprintf(ch+size, format, paramList); data/wp2latex-3.92/sources.cc/cole/support.h:106:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, #prog": A bug have been found: %s:%d\n"#prog \ data/wp2latex-3.92/sources.cc/cole/support.h:114:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, #prog": Condition "#t" is not valid: %s:%d\n", \ data/wp2latex-3.92/sources.cc/cole/support.h:126:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verbose_wonl(s) { printf (s); } data/wp2latex-3.92/sources.cc/cole/support.h:127:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verboseU8(expr) { printf (#expr " = 0x%02x\n", expr); } data/wp2latex-3.92/sources.cc/cole/support.h:128:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verboseU16(expr) { printf (#expr " = 0x%04x\n", expr); } data/wp2latex-3.92/sources.cc/cole/support.h:129:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verboseU32(expr) { printf (#expr " = 0x%08x\n", expr); } data/wp2latex-3.92/sources.cc/cole/support.h:130:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verboseS(expr) { printf (#expr " = %s\n", expr); } data/wp2latex-3.92/sources.cc/cole/support.h:131:31: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verboseS_wonl(expr) { printf (#expr " = %s", expr); } data/wp2latex-3.92/sources.cc/cole/support.h:154:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (#array "[%lu] = 0x%08lx\n", temp, array [temp]); \ data/wp2latex-3.92/sources.cc/images/ras_img.cc:1295:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(NameBuffer,Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3771:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Header,"MATLAB 5.0 MAT-file, Platform: %s, Created on: %s %s %2d %2d:%2d:%2d %d", data/wp2latex-3.92/sources.cc/images/ras_img.cc:4734:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(NameBuffer,Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4787:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(NameBuffer,Name); data/wp2latex-3.92/sources.cc/pass1.cc:621:1: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType,"%sLine Num:%s", (LineNo>=0)?"":"!", (LineNumbering&1)?"On":"Off"); data/wp2latex-3.92/sources.cc/pass1.cc:824:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cq->ObjType, "!Cell"+((cq->envir!='B')?0:1)); data/wp2latex-3.92/sources.cc/pass1.cc:1024:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Color:%s", ColorType); data/wp2latex-3.92/sources.cc/pass1.cc:1086:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cq->ObjType, "!End Table"+((cq->envir!='B')?0:1)); data/wp2latex-3.92/sources.cc/pass1.cc:1126:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Flsh Rtg%s",type==1?" (dot)":""); data/wp2latex-3.92/sources.cc/pass1.cc:1414:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Justification %s",Direction); data/wp2latex-3.92/sources.cc/pass1.cc:1562:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Lang:%s",CurLang); data/wp2latex-3.92/sources.cc/pass1.cc:1724:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Pg Numbering:%s",PgNumType); data/wp2latex-3.92/sources.cc/pass1.cc:1813:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cq->ObjType, "!Row"+((cq->envir!='B')?0:1)); data/wp2latex-3.92/sources.cc/pass1.cc:1923:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "%sFont %2.2f",ig,float(PointSize)/50); data/wp2latex-3.92/sources.cc/pass1.cc:2149:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType,"%sSuppress:%s%s%s%s",suppress,HA?" HA":"",HB?" HB":"",FA?" FA":"",FB?" FB":""); data/wp2latex-3.92/sources.cc/pass1.cc:2272:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType,"Tab%s",TabType); data/wp2latex-3.92/sources.cc/pass1.cc:2420:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Wid%s/Orph:%s", data/wp2latex-3.92/sources.cc/pass1602.cc:166:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cq->ObjType,(He_Fo & 3)<=1?"Header":"Footer"); data/wp2latex-3.92/sources.cc/pass1_1.cc:128:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, NoteType==2?"Endnote":"Footnote"); data/wp2latex-3.92/sources.cc/pass1_3.cc:555:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType,"!%s",BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_3.cc:637:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. default:sprintf(ObjType,"!%s",BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_3.cc:643:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_3.cc:924:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,(Defs & 3)<=1?"Header":"Footer"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1217:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType, "!Undo (?%d:%d)"+(::UndoRedo?1:0),subby,(int)Level); data/wp2latex-3.92/sources.cc/pass1_3.cc:1221:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType, "!Undo (%s:%d)"+(::UndoRedo?1:0), UndoType,(int)Level); data/wp2latex-3.92/sources.cc/pass1_4.cc:228:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, NoteType==2?"Endnote":"Footnote"); data/wp2latex-3.92/sources.cc/pass1_4.cc:383:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, ((HFtype & 3) <= 1)?"Header":"Footer"); data/wp2latex-3.92/sources.cc/pass1_4.cc:632:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "!ToA:%s", ShortForm()); /*not supported yet*/ data/wp2latex-3.92/sources.cc/pass1_5.cc:643:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. case 0:sprintf(ObjType,"%s:Empty",BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_5.cc:764:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. default:sprintf(ObjType,"!%s",BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_5.cc:770:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, BoxNames[BoxType]); data/wp2latex-3.92/sources.cc/pass1_5.cc:954:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Advance %s %2.2fcm",what,float(w)/470.0); data/wp2latex-3.92/sources.cc/pass1_5.cc:1302:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,(occurance & 3)<=1?"Header":"Footer"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1465:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "%sFont %2.2f%.20s",ig,float(PointSize)/50,FontName()); data/wp2latex-3.92/sources.cc/pass1_5.cc:1667:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "TabSet:%s",Absolute==0xFFFFL?"Abs":"Rel"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1127:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, BoxDescription); data/wp2latex-3.92/sources.cc/pass1_6.cc:1729:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjectName); data/wp2latex-3.92/sources.cc/pass1_6.cc:1912:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "%sFont %s", ig, chk(FontName())); data/wp2latex-3.92/sources.cc/pass1_6.cc:1928:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Inc %s Num",CounterName); data/wp2latex-3.92/sources.cc/pass1_6.cc:1978:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "Inc %s Counter",chk(CounterName())); data/wp2latex-3.92/sources.cc/pass1_6.cc:2028:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "Dec %s Counter",chk(CounterName())); data/wp2latex-3.92/sources.cc/pass1_6.cc:2097:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "Counter %s", chk(CounterName())); data/wp2latex-3.92/sources.cc/pass1_6.cc:2109:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Inc %s Num",CounterName); data/wp2latex-3.92/sources.cc/pass1_6.cc:2284:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "Ref:%s",RefTypes[TypeRef]); data/wp2latex-3.92/sources.cc/pass1_6.cc:2367:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType, "Set Counter %s=%u",chk(CounterName()),(unsigned int)Wchr); data/wp2latex-3.92/sources.cc/pass1_6.cc:2467:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cq->ObjType, "TabSet:%s", (Definition & 1)?"Rel":"Abs"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2634:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, "!Table Start"+((columns!=0)?1:0)); data/wp2latex-3.92/sources.cc/pass1_6.cc:2726:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType, "!Undo (?%d:%d)"+(::UndoRedo?1:0),Type,(int)Level); data/wp2latex-3.92/sources.cc/pass1_6.cc:2730:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType, "!Undo (%s:%d)"+(::UndoRedo?1:0), UndoType, (int)Level); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1228:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cq->ObjType, ((HFtype & 3) <= 1)?"Header":"Footer"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:449:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:467:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:483:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:496:1: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); // @TODO: dopsat! data/wp2latex-3.92/sources.cc/pass1wmf.cc:513:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:571:1: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType,"%s(%d)", ObjName+1, (int)Height); data/wp2latex-3.92/sources.cc/pass1wmf.cc:586:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType,"%s(%d;%d)", ObjName+1, PositionX, PositionY); data/wp2latex-3.92/sources.cc/pass1wmf.cc:589:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:603:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:621:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:635:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:664:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType, ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:679:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:696:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:711:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:717:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType,"%s(%u)", ObjName+1, ObjectIndex); data/wp2latex-3.92/sources.cc/pass1wmf.cc:732:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:741:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:747:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ObjType,"%s(%u)", ObjName+1, ObjectIndex); data/wp2latex-3.92/sources.cc/pass1wmf.cc:836:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:841:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:857:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:879:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:898:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:935:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:952:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:974:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:991:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType,ObjName+1,(unsigned)MapMode); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1010:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ObjType, ObjName+1, (unsigned)PolyFillMode); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1028:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1108:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1126:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1220:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ObjType,ObjName+1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1463:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(log, (i==0)?"%X":",%X", j); data/wp2latex-3.92/sources.cc/pass1wrd.cc:830:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(cq->log,("\nSection begins at %x ends %x "),cq->section_fcFirst, cq->section_fcLim); data/wp2latex-3.92/sources.cc/pass1wrd.cc:1304:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(cq->log,("\nSection begins at %x ends %x "),cq->section_fcFirst, cq->section_fcLim); data/wp2latex-3.92/sources.cc/pass2.cc:828:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str,str+optlen); // Overlapping regions data/wp2latex-3.92/sources.cc/word/wvparser.c:5149:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(apap->stylename,stsh->std[istdBase].xstzName); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1040:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if(encryption!=0) fprintf(err,_(EncryptionWarning)); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1056:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(err,_(EncryptionWarning)); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1091:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if(encryption!=0) fprintf(err,_(EncryptionWarning)); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1881:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(err, (Fx->next()==NULL)?"%s":"%s,", Fx->shortkey()); data/wp2latex-3.92/sources.cc/wp2latex.cc:142:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(displayed?"\b\b\b\b%3d%%":"%3d%%",CurrentPercent); data/wp2latex-3.92/instaler/inst_gt.cc:64:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. temp=getenv(temp); data/wp2latex-3.92/instaler/inst_gt.cc:136:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Locale_Dir=getenv("DJGPP"); data/wp2latex-3.92/sources.cc/cole/new_cole.c:522:6: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). tmpnam (ole->sbfilename); data/wp2latex-3.92/sources.cc/cole/new_cole.c:533:6: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). tmpnam (o.pps_list[i].filename); data/wp2latex-3.92/sources.cc/cole/new_cole.c:629:11: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). if (tmpnam (OleFile->filename) == NULL) data/wp2latex-3.92/sources.cc/igettext.cc:52:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. temp=getenv(temp); data/wp2latex-3.92/sources.cc/igettext.cc:126:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Locale_Dir = getenv("DJGPP"); data/wp2latex-3.92/sources.cc/jobs/csext.h:30:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define EnterCriticalSection(pCS) pthread_mutex_lock(pCS) data/wp2latex-3.92/sources.cc/jobs/csext.h:31:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define InitializeCriticalSection(pCS) pthread_mutex_init(pCS, NULL) data/wp2latex-3.92/sources.cc/jobs/csext.h:50:29: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. CritSectionWrapper(void) {InitializeCriticalSection(&cs);} data/wp2latex-3.92/sources.cc/jobs/csext.h:63:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&cs); data/wp2latex-3.92/sources.cc/jobs/csext.h:89:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(poCritSection); data/wp2latex-3.92/sources.cc/jobs/csext.h:95:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(poCritSection); data/wp2latex-3.92/sources.cc/jobs/csext.h:180:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&rwlock); data/wp2latex-3.92/sources.cc/jobs/csext.h:186:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&rwlock); data/wp2latex-3.92/sources.cc/jobs/csext.h:200:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&rwlock); data/wp2latex-3.92/sources.cc/jobs/csext.h:224:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&rwlock); data/wp2latex-3.92/sources.cc/jobs/csext.h:238:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&rwlock); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:70:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&jobs_cs); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:115:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *str = getenv("OMP_NUM_THREADS"); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:122:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("NUMBER_OF_PROCESSORS"); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:129:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&jobs_cs); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:168:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&jobs_cs); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:196:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&jobs_cs); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:206:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&jobs_cs); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:320:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. var = getenv("noclobber"); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:323:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. var = getenv("wp2latex"); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:324:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(var=="") var = getenv("WP2LATEX"); data/wp2latex-3.92/instaler/inst_gt.cc:86:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(filename,"r"))==NULL) return; data/wp2latex-3.92/instaler/inst_gt.cc:225:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (F=fopen("igt.bat","w"))==NULL ) return(-2); data/wp2latex-3.92/instaler/menucfg.cc:47:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (F=fopen(argv[1],"rt"))==NULL ) {printf("no file %s\n",argv[1]);return(-2);} data/wp2latex-3.92/instaler/menucfg.cc:98:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (F=fopen(argv[1],"wt"))==NULL ) {printf("cannot write to file %s\n",argv[1]);return(-3);} data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:161:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*cpstr1, s, len); data/wp2latex-3.92/sources.cc/atoms/sets.cc:55:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data,s.data,size); data/wp2latex-3.92/sources.cc/atoms/sets.cc:202:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)data+((s.MinElement-MinElement)>>3),s.data,size); data/wp2latex-3.92/sources.cc/atoms/sets.cc:216:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data,s.data,size); data/wp2latex-3.92/sources.cc/atoms/sets.cc:412:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)tmp.data+((s1.MinElement-tmp.MinElement)>>3), data/wp2latex-3.92/sources.cc/atoms/sets.cc:428:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)tmp.data+((MinElement-tmp.MinElement)>>3), data/wp2latex-3.92/sources.cc/atoms/sets.cc:845:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[200]; //!!!!Opravit, staticky buffer je docela spatny data/wp2latex-3.92/sources.cc/atoms/stack.cc:39:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data,s.data,Level*sizeof(int)); data/wp2latex-3.92/sources.cc/atoms/strings.cc:116:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ch,str,size+1); //strncpy(ch,str,maxlen+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:137:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ch,s.ch,size+1); //strncpy(ch,s.ch,maxlen+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:269:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[12]; data/wp2latex-3.92/sources.cc/atoms/strings.cc:270:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%ld",l); data/wp2latex-3.92/sources.cc/atoms/strings.cc:277:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[24]; data/wp2latex-3.92/sources.cc/atoms/strings.cc:278:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%g",d); data/wp2latex-3.92/sources.cc/atoms/strings.cc:308:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ch,str,len+1); //strcpy(ch,str); data/wp2latex-3.92/sources.cc/atoms/strings.cc:349:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(ch!=NULL) memcpy(ch,s.ch,size+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:387:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch,s1.ch,s1.size); data/wp2latex-3.92/sources.cc/atoms/strings.cc:388:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch+s1.size,s2.ch,s2.size+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:408:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(s1.size>0) memcpy(tmp.ch,s1.ch,s1.size); data/wp2latex-3.92/sources.cc/atoms/strings.cc:409:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch+s1.size,str,len+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:429:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch,str,len+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:430:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch+len,s2.ch,s2.size+1); data/wp2latex-3.92/sources.cc/atoms/strings.cc:447:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch,s.ch,s.size); data/wp2latex-3.92/sources.cc/atoms/strings.cc:471:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.ch+1,s.ch,tmp.size); data/wp2latex-3.92/sources.cc/atoms/strings.cc:539:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[12]; data/wp2latex-3.92/sources.cc/atoms/strings.cc:540:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%ld",l); data/wp2latex-3.92/sources.cc/atoms/strings.cc:547:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[24]; data/wp2latex-3.92/sources.cc/atoms/strings.cc:548:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%g",d); data/wp2latex-3.92/sources.cc/atoms/utf8.c:27:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char utf8_mask[6] = { 0x7f, 0x1f, 0x0f, 0x07, 0x03, 0x01 }; data/wp2latex-3.92/sources.cc/charactr.cc:75:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[4]; data/wp2latex-3.92/sources.cc/cole/internal.h:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[0x20]; data/wp2latex-3.92/sources.cc/cole/internal.h:43:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[L_tmpnam]; /* valid only if type == 2 */ data/wp2latex-3.92/sources.cc/cole/new_cole.c:171:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). o.input = fopen (OLEfilename, "rb"); data/wp2latex-3.92/sources.cc/cole/new_cole.c:524:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). o.sbfile = OLEfile = fopen (ole->sbfilename, "wb+"); data/wp2latex-3.92/sources.cc/cole/new_cole.c:536:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). OLEfile = fopen (o.pps_list[i].filename, "wb"); data/wp2latex-3.92/sources.cc/cole/new_cole.c:635:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = fopen (OleFile->filename, "w+b"); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:20:5: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). F=fopen(FileName,"rb"); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:250:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). F = fopen(Switch,"wb"); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:297:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Fcp = fopen(Table,"wb"); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:431:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen("trn.trn","w"))==NULL) return(0); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:476:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen("html.trn","w"))==NULL) return(0); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:484:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen("cpg.trn","w"))==NULL) return(0); data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:529:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen("mtef.trn","w"))==NULL) goto SkipMtef; data/wp2latex-3.92/sources.cc/cp_lib/cpbldr.cc:540:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen("macroman.trn","w"))==NULL) return(0); data/wp2latex-3.92/sources.cc/cp_lib/cplib.cc:222:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (Fcp=fopen(cpfilename,"r"))==NULL ) data/wp2latex-3.92/sources.cc/cp_lib/cplib.cc:272:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (Fcp=fopen(cpfilename,"r"))==NULL ) data/wp2latex-3.92/sources.cc/igettext.cc:74:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(filename,"r"))==NULL) return; data/wp2latex-3.92/sources.cc/images.cc:168:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((PostScript=fopen(NewFilename,"r"))!=NULL) data/wp2latex-3.92/sources.cc/images.cc:374:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq5->ObjType,"Font Size %dWPu",FontSize2); data/wp2latex-3.92/sources.cc/images.cc:438:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern unsigned char CharsWP6_1_32[0x21]; data/wp2latex-3.92/sources.cc/images.cc:485:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq6->ObjType,"Font Size %dWPu",FontSize); data/wp2latex-3.92/sources.cc/images.cc:525:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq6->ObjType,"Pen Fore Color %d,%d,%d",PSS->TextColor.Red,PSS->TextColor.Green,PSS->TextColor.Blue); data/wp2latex-3.92/sources.cc/images.cc:650:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char tmp_img[11] = "00_img.wpg"; data/wp2latex-3.92/sources.cc/images.cc:790:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1:strcpy(cq->ObjType,"Start WPG"); data/wp2latex-3.92/sources.cc/images.cc:798:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2:strcpy(cq->ObjType,"End WPG"); data/wp2latex-3.92/sources.cc/images.cc:801:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3:strcpy(cq->ObjType,"!Form Settings"); break; data/wp2latex-3.92/sources.cc/images.cc:802:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x4:strcpy(cq->ObjType,"!Ruller Settings"); break; data/wp2latex-3.92/sources.cc/images.cc:803:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x5:strcpy(cq->ObjType,"!Grid Settings"); break; data/wp2latex-3.92/sources.cc/images.cc:804:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x6:strcpy(cq->ObjType,"!Layer"); break; data/wp2latex-3.92/sources.cc/images.cc:805:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x7:strcpy(cq->ObjType,"!Object Link"); break; data/wp2latex-3.92/sources.cc/images.cc:806:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8:strcpy(cq->ObjType,"!Pen style definition"); break; data/wp2latex-3.92/sources.cc/images.cc:808:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Pattern Definition"); data/wp2latex-3.92/sources.cc/images.cc:823:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA:strcpy(cq->ObjType,"!Comment"); break; data/wp2latex-3.92/sources.cc/images.cc:824:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0B:strcpy(cq->ObjType,"!Color Transfer"); break; data/wp2latex-3.92/sources.cc/images.cc:825:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0C:strcpy(cq->ObjType,"Color Palette"); data/wp2latex-3.92/sources.cc/images.cc:841:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0D:strcpy(cq->ObjType,"DP Color Palette"); data/wp2latex-3.92/sources.cc/images.cc:859:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0E:strcpy(cq->ObjType,"Bitmap Data"); data/wp2latex-3.92/sources.cc/images.cc:944:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Text Data"); data/wp2latex-3.92/sources.cc/images.cc:947:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x10:strcpy(cq->ObjType,"!Chart Style");break; data/wp2latex-3.92/sources.cc/images.cc:948:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(cq->ObjType,"Chart Data");break; data/wp2latex-3.92/sources.cc/images.cc:949:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x12:{strcpy(cq->ObjType,"Object Image"); /* PostScript or another format inside WPG2*/ data/wp2latex-3.92/sources.cc/images.cc:966:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x15:{strcpy(cq->ObjType,"Polyline"); data/wp2latex-3.92/sources.cc/images.cc:1001:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x16:strcpy(cq->ObjType,"!Polyspline");break; data/wp2latex-3.92/sources.cc/images.cc:1002:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x17:{strcpy(cq->ObjType,"Polycurve"); data/wp2latex-3.92/sources.cc/images.cc:1020:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x18:{strcpy(cq->ObjType,"Rectangle"); data/wp2latex-3.92/sources.cc/images.cc:1034:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x19:{strcpy(cq->ObjType,"Arc"); data/wp2latex-3.92/sources.cc/images.cc:1080:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1A:strcpy(cq->ObjType,"!Compound Polygon");break; data/wp2latex-3.92/sources.cc/images.cc:1081:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1B:{strcpy(cq->ObjType,"Bitmap position"); data/wp2latex-3.92/sources.cc/images.cc:1136:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Text Line"); data/wp2latex-3.92/sources.cc/images.cc:1146:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1D:strcpy(cq->ObjType,"Text Block"); data/wp2latex-3.92/sources.cc/images.cc:1167:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1E:strcpy(cq->ObjType,"!Text Path");break; data/wp2latex-3.92/sources.cc/images.cc:1168:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1F:strcpy(cq->ObjType,"!Chart");break; data/wp2latex-3.92/sources.cc/images.cc:1169:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x20:strcpy(cq->ObjType,"!Group");break; data/wp2latex-3.92/sources.cc/images.cc:1170:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x21:{strcpy(cq->ObjType,"!Object Capsule");break; data/wp2latex-3.92/sources.cc/images.cc:1173:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x22:strcpy(cq->ObjType,"!Font Settings");break; data/wp2latex-3.92/sources.cc/images.cc:1174:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x23:strcpy(cq->ObjType,"!Line Cap Definition");break; data/wp2latex-3.92/sources.cc/images.cc:1175:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x24:strcpy(cq->ObjType,"!Line Join Definition");break; data/wp2latex-3.92/sources.cc/images.cc:1176:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x25:{strcpy(cq->ObjType,"Pen Fore Color"); data/wp2latex-3.92/sources.cc/images.cc:1184:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x26:strcpy(cq->ObjType,"!DP Pen Fore Color");break; data/wp2latex-3.92/sources.cc/images.cc:1185:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x27:strcpy(cq->ObjType,"!Pen Back Color");break; data/wp2latex-3.92/sources.cc/images.cc:1186:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x28:strcpy(cq->ObjType,"!DP Pen Back Color");break; data/wp2latex-3.92/sources.cc/images.cc:1187:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x29:{strcpy(cq->ObjType,"Pen Style"); data/wp2latex-3.92/sources.cc/images.cc:1197:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2A:strcpy(cq->ObjType,"!Pen Pattern");break; data/wp2latex-3.92/sources.cc/images.cc:1210:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"Pen Size %d", Width>Height?Width:Height); data/wp2latex-3.92/sources.cc/images.cc:1213:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2C:strcpy(cq->ObjType,"!DP Pen Size");break; data/wp2latex-3.92/sources.cc/images.cc:1214:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2D:strcpy(cq->ObjType,"!Line Cap");break; data/wp2latex-3.92/sources.cc/images.cc:1215:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2E:strcpy(cq->ObjType,"!Line Join");break; data/wp2latex-3.92/sources.cc/images.cc:1216:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2F:strcpy(cq->ObjType,"!Brush Gradient");break; data/wp2latex-3.92/sources.cc/images.cc:1217:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x30:strcpy(cq->ObjType,"!DP Brush Gradient");break; data/wp2latex-3.92/sources.cc/images.cc:1239:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"Brush Fore Color n:%d (%2.2X %2.2X %2.2X; %2.2X)", data/wp2latex-3.92/sources.cc/images.cc:1244:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"!Brush Fore Color"); data/wp2latex-3.92/sources.cc/images.cc:1265:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"DP Brush Fore Color n:%d (%X %X %X; %X)", data/wp2latex-3.92/sources.cc/images.cc:1269:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"!DP Brush Fore Color"); data/wp2latex-3.92/sources.cc/images.cc:1276:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"Brush Back Color (%2.2X %2.2X %2.2X)", data/wp2latex-3.92/sources.cc/images.cc:1288:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"DP Brush Back Color (%2X %2X %2X)", R,G,B); data/wp2latex-3.92/sources.cc/images.cc:1293:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"Brush Pattern %X", Pattern); data/wp2latex-3.92/sources.cc/images.cc:1297:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Horizontal Line"); data/wp2latex-3.92/sources.cc/images.cc:1310:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Vertical Line"); data/wp2latex-3.92/sources.cc/images.cc:1322:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x38:strcpy(cq->ObjType,"!Poster Settings");break; data/wp2latex-3.92/sources.cc/images.cc:1323:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x39:strcpy(cq->ObjType,"!Image State"); data/wp2latex-3.92/sources.cc/images.cc:1330:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3A:strcpy(cq->ObjType,"!Envelope Definition");break; data/wp2latex-3.92/sources.cc/images.cc:1331:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3B:strcpy(cq->ObjType,"!Envelope");break; data/wp2latex-3.92/sources.cc/images.cc:1332:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3C:strcpy(cq->ObjType,"!Texture Definition");break; data/wp2latex-3.92/sources.cc/images.cc:1333:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3D:strcpy(cq->ObjType,"!Brush Texture");break; data/wp2latex-3.92/sources.cc/images.cc:1334:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3E:strcpy(cq->ObjType,"!Texture Alignment");break; data/wp2latex-3.92/sources.cc/images.cc:1335:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3F:strcpy(cq->ObjType,"!Pen Texture");break; data/wp2latex-3.92/sources.cc/images.cc:1337:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. default: sprintf(cq->ObjType,"?%d?",(int)Rec2.Type); break; data/wp2latex-3.92/sources.cc/images.cc:1428:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1:{strcpy(cq->ObjType,"Fill Attributes"); data/wp2latex-3.92/sources.cc/images.cc:1444:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2:{strcpy(cq->ObjType,"Line Attributes"); data/wp2latex-3.92/sources.cc/images.cc:1475:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3:strcpy(cq->ObjType,"!Symbol Attributes"); break; data/wp2latex-3.92/sources.cc/images.cc:1476:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x4:strcpy(cq->ObjType,"!Polysymbol"); break; data/wp2latex-3.92/sources.cc/images.cc:1477:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x5:strcpy(cq->ObjType,"!Line"); break; data/wp2latex-3.92/sources.cc/images.cc:1478:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x6:{strcpy(cq->ObjType,"Curve"); data/wp2latex-3.92/sources.cc/images.cc:1492:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x7:strcpy(cq->ObjType,"!Rectangle"); break; data/wp2latex-3.92/sources.cc/images.cc:1493:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8:{strcpy(cq->ObjType,"Polygon"); data/wp2latex-3.92/sources.cc/images.cc:1508:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9:{strcpy(cq->ObjType,"Elipsis"); data/wp2latex-3.92/sources.cc/images.cc:1535:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA:strcpy(cq->ObjType,"!Elipsis"); break; data/wp2latex-3.92/sources.cc/images.cc:1536:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB:strcpy(cq->ObjType,"Bitmap l1"); data/wp2latex-3.92/sources.cc/images.cc:1561:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC:strcpy(cq->ObjType,"!Graphics Text");NumFormat=1; break; //This is a bug fix for Draw Perfect WPG data/wp2latex-3.92/sources.cc/images.cc:1562:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD:{strcpy(cq->ObjType,"Text Attributes"); data/wp2latex-3.92/sources.cc/images.cc:1569:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xE:strcpy(cq->ObjType,"Color Map"); data/wp2latex-3.92/sources.cc/images.cc:1579:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xF:strcpy(cq->ObjType,"!Start WPG l1"); break; data/wp2latex-3.92/sources.cc/images.cc:1580:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x10:strcpy(cq->ObjType,"!End WPG l1"); break; data/wp2latex-3.92/sources.cc/images.cc:1581:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(cq->ObjType,"Start PS l1"); data/wp2latex-3.92/sources.cc/images.cc:1595:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x12:strcpy(cq->ObjType,"!Output Attributes"); break; data/wp2latex-3.92/sources.cc/images.cc:1596:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x13:{strcpy(cq->ObjType,"Plain Curve"); data/wp2latex-3.92/sources.cc/images.cc:1616:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Bitmap l2"); data/wp2latex-3.92/sources.cc/images.cc:1639:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x15:strcpy(cq->ObjType,"!Start Image"); break; data/wp2latex-3.92/sources.cc/images.cc:1640:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x16:strcpy(cq->ObjType,"!Start Graph"); break; data/wp2latex-3.92/sources.cc/images.cc:1641:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x17:strcpy(cq->ObjType,"!Plan Perfect"); break; data/wp2latex-3.92/sources.cc/images.cc:1659:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType,"Graphics Text l2"); data/wp2latex-3.92/sources.cc/images.cc:1661:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x19:strcpy(cq->ObjType,"!Data Start l2"); break; data/wp2latex-3.92/sources.cc/images.cc:1662:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1A:strcpy(cq->ObjType,"!Graphics Text l3"); break; data/wp2latex-3.92/sources.cc/images.cc:1663:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1B:strcpy(cq->ObjType,"PostScript l2"); data/wp2latex-3.92/sources.cc/images.cc:1675:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. default: sprintf(cq->ObjType,"?%d?",(int)Rec.RecType); break; data/wp2latex-3.92/sources.cc/images.cc:1769:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0: strcpy(cq->ObjType,"!Start WPG MAC"); break; data/wp2latex-3.92/sources.cc/images.cc:1770:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(cq->ObjType,"!Graphics Text"); break; data/wp2latex-3.92/sources.cc/images.cc:1812:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). SrcImage = fopen(NewFilename(),"rb"); data/wp2latex-3.92/sources.cc/images.cc:1922:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(FileName,"rb"))==NULL) return(NULL); data/wp2latex-3.92/sources.cc/images.cc:2103:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((SrcImage=fopen(FragmentFileName(),"rb"))==NULL) data/wp2latex-3.92/sources.cc/images.cc:2220:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((SrcImage=fopen(FragmentFileName(),"rb"))!=NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:195:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch, arr[32]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:292:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:342:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:554:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:871:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:997:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rt"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1127:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wt"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1181:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FileId[2]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:1192:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PaletteId[20]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:1212:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1303:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".PAL"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1304:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:1306:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".pal"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1307:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:1310:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:1398:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char a[256]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:1405:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1494:11: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). x = atol(a); //readX data/wp2latex-3.92/sources.cc/images/ras_img.cc:1677:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wt"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2229:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char HDU[36][80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2230:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char identifier[80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2231:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2232:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comment[80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2248:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen(Name,"rb"))==NULL) return(NULL); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2319:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). BitPix = atoi(value); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2344:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Naxis = atoi(value); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2349:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). AxNumber = atoi(identifier+5) - 1; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2352:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Axes[AxNumber] = atoi(value); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2477:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char HDU[36][80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2486:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2519:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[1], "BITPIX = %d", (int)depth); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2522:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[3], "NAXIS1 = %10lu",(unsigned long)Img.Raster->GetSize1D()); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2524:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[4], "NAXIS2 = %10lu",(unsigned long)Img.Raster->Size2D); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2543:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row], "DATAMIN = %10f",Min); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2545:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row], "DATAMAX = %10f",Max); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2550:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row], "DATAMIN = %10u",0); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2553:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row], "DATAMAX = 9223372036854775807"); // "DATAMAX = %19llu",0x7FFFFFFFFFFFFFFFll); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2555:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row], "DATAMAX = %10lu",(unsigned long)1<<Img.Raster->GetPlanes()); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2561:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. y = sprintf(HDU[row],"BZERO = %10u", (depth<=16) ? 32768U : 2147483648U); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2626:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char SignatureMain[3]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2627:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char SignatureRelease[3]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:2823:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(NULL); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3033:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3144:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3225:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3315:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3410:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char identific[124]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3412:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char idx[2]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3498:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3702:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3755:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *MonthsTab[12]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3756:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *DayOfWTab[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3793:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3797:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char MATLAB_HDR[184]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3980:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char identific[80]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:3989:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[416]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:4003:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4061:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(Header.identific,"OBR2 Image File v3.05"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4063:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4100:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char a[255]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:4106:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4125:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 1: x=atol(a); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4131:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 2: x=atol(a); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4138:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 3: x=atol(a); //true color text data/wp2latex-3.92/sources.cc/images/ras_img.cc:4147:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 4: x=atol(a); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4153:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 5: x=atol(a); //gray level data/wp2latex-3.92/sources.cc/images/ras_img.cc:4161:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 6: x=atol(a); //binary true color 24bit format data/wp2latex-3.92/sources.cc/images/ras_img.cc:4286:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4393:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Palette->Data1D,Header.ColorMap,(7+Palette->Size1D*Palette->GetPlanes())/8); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4455:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&PCXFile.ColorMap,Palette->Data1D,C); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4471:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((F=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4579:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Name[20]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:4642:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4742:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".PAL"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4743:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4745:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".pal"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4746:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4749:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4795:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".MEZ"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4796:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4798:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(NameBuffer+i,".mez"); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4799:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(NameBuffer,"rb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4861:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4880:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(PalName,Name,i+1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4881:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(PalName+i-3,"PAL",3); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4883:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(PalName,"wb"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:4953:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5026:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5098:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5288:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5361:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ImageID[256] = ""; //??? data/wp2latex-3.92/sources.cc/images/ras_img.cc:5367:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wb"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5489:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rt"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5601:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wt"))==NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5644:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rt"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5793:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"wt"))==NULL) data/wp2latex-3.92/sources.cc/images/ras_img.cc:6041:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_img.cc:6836:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char SampleBuffer[8]; data/wp2latex-3.92/sources.cc/images/ras_img.cc:7084:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(NULL); data/wp2latex-3.92/sources.cc/images/ras_jpg.cc:77:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((infile = fopen(Name, "rb")) == NULL) data/wp2latex-3.92/sources.cc/images/ras_jpg.cc:154:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Raster->GetRow(current_line), buffer[0], line_size); data/wp2latex-3.92/sources.cc/images/ras_jpg.cc:230:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((outfile = fopen(Name, "wb")) == NULL) return(-1); data/wp2latex-3.92/sources.cc/images/ras_png.cc:47:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f=fopen(Name,"rb"))==NULL) return(Img); data/wp2latex-3.92/sources.cc/images/ras_png.cc:131:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(Name, "wb"); data/wp2latex-3.92/sources.cc/images/raster.cc:97:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(R1.Data1D, Data1D, ((long)maxi*labs(GetPlanes())+7)/8); data/wp2latex-3.92/sources.cc/images/raster.cc:146:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Data1D, R1.Data1D, ((long)i*labs(GetPlanes())+7)/8); data/wp2latex-3.92/sources.cc/images/raster.cc:186:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(R1.Data1D, RAW_Data1D, ((long)maxi*labs(GetPlanes())+7)/8); data/wp2latex-3.92/sources.cc/images/raster.cc:233:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(RAW_Data1D, R1.Data1D, ((long)i*labs(GetPlanes())+7)/8); data/wp2latex-3.92/sources.cc/images/raster.cc:1031:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Buffer24Bit,Data1D,3*Size1D); data/wp2latex-3.92/sources.cc/images/raster.cc:1283:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(R1.Data1D, Data1D, Size1D*sizeof(float)); data/wp2latex-3.92/sources.cc/images/raster.cc:1320:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Data1D, R1.Data1D, Size1D*sizeof(float)); data/wp2latex-3.92/sources.cc/images/raster.cc:1410:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(R1.Data1D, Data1D, Size1D*sizeof(float)); data/wp2latex-3.92/sources.cc/images/raster.cc:1447:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Data1D, R1.Data1D, Size1D*sizeof(float)); data/wp2latex-3.92/sources.cc/images/raster.cc:1539:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 3: memcpy(Data1D, R1.Data1D, ((long)maxi*GetPlanes()+7)/8); // convert from RGB to RGB - just copy data/wp2latex-3.92/sources.cc/images/raster.cc:1594:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Data1D, R1.Data1D, ((long)i*GetPlanes()+7)/8); data/wp2latex-3.92/sources.cc/images/raster.cc:1647:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Buffer24Bit,Data1D,3*Size1D); data/wp2latex-3.92/sources.cc/images/vecimage.cc:54:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&PSS->LineColor,&LineColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:73:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&LineColor, &PSS.LineColor, sizeof(PSS.LineColor)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:82:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&FillColor, &PSS.FillColor, sizeof(PSS.FillColor)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:92:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&PSS->FillColor,&FillColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:1118:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&BkTextColor,&PSS->LineColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:1139:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&PSS->LineColor,&Text[i]->TextColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:1164:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&PSS->LineColor,&BkTextColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:1213:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pTobj->TextColor,&PSS.TextColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/images/vecimage.cc:1240:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pTobj->TextColor,&PSS.TextColor,sizeof(RGB_Record)); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:117:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ThrCount = atoi(str); data/wp2latex-3.92/sources.cc/jobs/jobs.cc:124:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ThrCount = atoi(str); data/wp2latex-3.92/sources.cc/pass1.cc:36:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *Parts[8] = { data/wp2latex-3.92/sources.cc/pass1.cc:48:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ss[13] = "00__Hack.txt"; data/wp2latex-3.92/sources.cc/pass1.cc:306:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Attr Outlin On"); data/wp2latex-3.92/sources.cc/pass1.cc:313:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Attr Red On"); data/wp2latex-3.92/sources.cc/pass1.cc:329:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Attr %d On",(int)b); data/wp2latex-3.92/sources.cc/pass1.cc:353:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Attr %d Off",(int)b); data/wp2latex-3.92/sources.cc/pass1.cc:445:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Col"); data/wp2latex-3.92/sources.cc/pass1.cc:460:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Col On"); data/wp2latex-3.92/sources.cc/pass1.cc:468:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. NoOneCol:strcpy(cq->ObjType, "Col Off"); data/wp2latex-3.92/sources.cc/pass1.cc:486:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "End Indent"); data/wp2latex-3.92/sources.cc/pass1.cc:504:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!HRt"); data/wp2latex-3.92/sources.cc/pass1.cc:509:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "HRt"); data/wp2latex-3.92/sources.cc/pass1.cc:544:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Indent"); data/wp2latex-3.92/sources.cc/pass1.cc:599:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Indent"); data/wp2latex-3.92/sources.cc/pass1.cc:802:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Cancel Hyph"); data/wp2latex-3.92/sources.cc/pass1.cc:856:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Center"); data/wp2latex-3.92/sources.cc/pass1.cc:869:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "CenterPg"); data/wp2latex-3.92/sources.cc/pass1.cc:976:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Color"); data/wp2latex-3.92/sources.cc/pass1.cc:1036:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Date"); data/wp2latex-3.92/sources.cc/pass1.cc:1055:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "End MarkToC %d",(int)b); data/wp2latex-3.92/sources.cc/pass1.cc:1138:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "- Hyphen"); data/wp2latex-3.92/sources.cc/pass1.cc:1153:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!HPg"); data/wp2latex-3.92/sources.cc/pass1.cc:1157:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "HPg"); data/wp2latex-3.92/sources.cc/pass1.cc:1192:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!VLine"); data/wp2latex-3.92/sources.cc/pass1.cc:1231:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "HLine"); data/wp2latex-3.92/sources.cc/pass1.cc:1244:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Hyph On"); data/wp2latex-3.92/sources.cc/pass1.cc:1247:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Hyph Off"); data/wp2latex-3.92/sources.cc/pass1.cc:1249:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. default:strcpy(cq->ObjType, "!Hyph ?"); data/wp2latex-3.92/sources.cc/pass1.cc:1345:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "ISRt"); data/wp2latex-3.92/sources.cc/pass1.cc:1351:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char JustWP3_2WP5[4]={0,2,3,1}; data/wp2latex-3.92/sources.cc/pass1.cc:1489:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CurLang[3],OldLang[3]; data/wp2latex-3.92/sources.cc/pass1.cc:1579:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(ParNumType>=0x80) strcpy(cq->ObjType, "ParNum:Auto"); data/wp2latex-3.92/sources.cc/pass1.cc:1580:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. else sprintf(cq->ObjType, "ParNum:%d",(int)ParNumType); data/wp2latex-3.92/sources.cc/pass1.cc:1625:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Insert Pg Num"); data/wp2latex-3.92/sources.cc/pass1.cc:1751:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Place Endnotes"); data/wp2latex-3.92/sources.cc/pass1.cc:1768:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Def Mark:Index"); data/wp2latex-3.92/sources.cc/pass1.cc:1848:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Endnote Num:%u",(unsigned)CurEndNoteNum); data/wp2latex-3.92/sources.cc/pass1.cc:1960:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Footnote Num:%u",(unsigned)CurFootnoteNum); data/wp2latex-3.92/sources.cc/pass1.cc:1996:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Pg Num:%u",(unsigned)CurPgNum); data/wp2latex-3.92/sources.cc/pass1.cc:2008:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "- Soft Hyphen"); data/wp2latex-3.92/sources.cc/pass1.cc:2029:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "SRt"); data/wp2latex-3.92/sources.cc/pass1.cc:2048:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Start MarkToC %d",(int)b); data/wp2latex-3.92/sources.cc/pass1.cc:2268:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1.cc:2297:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Def Mark:ToC"); data/wp2latex-3.92/sources.cc/pass1.cc:2304:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "%d",ListType); data/wp2latex-3.92/sources.cc/pass1.cc:2315:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Def Mark:List,%d:%d",(int)ListType,(int)ListSubType+1); data/wp2latex-3.92/sources.cc/pass1.cc:2317:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 3:sprintf(cq->ObjType, "!Def Mark:ToA,%d",(int)(ListType & 0xF +1)); data/wp2latex-3.92/sources.cc/pass1.cc:2321:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. default: strcpy(cq->ObjType, "Def Mark:?Unknown"); data/wp2latex-3.92/sources.cc/pass1.cc:2424:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. else sprintf(cq->ObjType, "!Wid/Orph:%d",type); data/wp2latex-3.92/sources.cc/pass1602.cc:76:9: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). value=atol(cq->args()); data/wp2latex-3.92/sources.cc/pass1602.cc:192:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Box.RotAngle=atoi(str); data/wp2latex-3.92/sources.cc/pass1_1.cc:70:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, ":%u",(unsigned)subby); data/wp2latex-3.92/sources.cc/pass1_1.cc:199:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Corrupted!!"); data/wp2latex-3.92/sources.cc/pass1_1.cc:209:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x09:strcpy(ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1_1.cc:212:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0b:Terminate_Line(this,'p');strcpy(ObjType, "SRt SoftPg");break;/* Soft page break after a SRt */ data/wp2latex-3.92/sources.cc/pass1_1.cc:213:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0c:strcpy(ObjType, "HPg");Terminate_Line(this,'P');break; // Hard page data/wp2latex-3.92/sources.cc/pass1_1.cc:219:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x80:strcpy(ObjType, "NOP"); break; /* NOP */ data/wp2latex-3.92/sources.cc/pass1_1.cc:224:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Center End"); break; data/wp2latex-3.92/sources.cc/pass1_1.cc:235:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "HRt-SPg"); break; data/wp2latex-3.92/sources.cc/pass1_1.cc:243:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Underline"); break; data/wp2latex-3.92/sources.cc/pass1_1.cc:246:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "underline"); break; data/wp2latex-3.92/sources.cc/pass1_1.cc:252:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9B:strcpy(ObjType,"!End Gener Text");break; /* End of generated text */ data/wp2latex-3.92/sources.cc/pass1_1.cc:284:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "SupScript"); data/wp2latex-3.92/sources.cc/pass1_1.cc:287:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "SubScript"); data/wp2latex-3.92/sources.cc/pass1_1.cc:292:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC0:strcpy(ObjType, "!WP1_MARGIN_RESET_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:293:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC1:strcpy(ObjType, "!WP1_SPACING_RESET_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:294:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC2:strcpy(ObjType, "!WP1_MARGIN_RELEASE_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:295:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC3:strcpy(ObjType, "!WP1_CENTER_TEXT_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:296:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC4:strcpy(ObjType, "!WP1_FLUSH_RIGHT_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:298:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC9:strcpy(ObjType, "!WP1_SET_TABS_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:300:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xCC:strcpy(ObjType, "!WP1_LEFT_INDENT_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:302:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xCE:strcpy(ObjType, "!WP1_TOP_MARGIN_SET_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:303:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xCF:strcpy(ObjType, "!WP1_SUPPRESS_PAGE_CHARACTERISTICS_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:304:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD0:strcpy(ObjType, "!WP1_BOTTOM_MARGIN_SET_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:305:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD1:strcpy(ObjType, "!WP1_HEADER_FOOTER_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:307:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xE0:strcpy(ObjType, "!WP1_LEFT_RIGHT_INDENT_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_1.cc:311:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xF4:strcpy(ObjType, "!WP1_POINT_SIZE_GROUP"); goto GROUP_Cx; data/wp2latex-3.92/sources.cc/pass1_3.cc:98:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char SizesC0[0x10] = { data/wp2latex-3.92/sources.cc/pass1_3.cc:106:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char ConvertAttr[32] = data/wp2latex-3.92/sources.cc/pass1_3.cc:261:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ResType[5]; data/wp2latex-3.92/sources.cc/pass1_3.cc:471:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "%d,%d",wchr_code & 0xFF,wchr_code>>8); data/wp2latex-3.92/sources.cc/pass1_3.cc:493:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *BoxNames[6]={"Figure","Table Box","Text Box","Usr Box","Equation","HTML Box"}; data/wp2latex-3.92/sources.cc/pass1_3.cc:532:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "!Box %d", BoxType); data/wp2latex-3.92/sources.cc/pass1_3.cc:665:1: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Col Def:%d",(int)NoColumns); data/wp2latex-3.92/sources.cc/pass1_3.cc:683:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "%d %d,%d",MacChar,WpCharSet,Char); data/wp2latex-3.92/sources.cc/pass1_3.cc:759:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Endnote"); data/wp2latex-3.92/sources.cc/pass1_3.cc:826:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Footnote"); data/wp2latex-3.92/sources.cc/pass1_3.cc:944:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Line Spacing %2.2f",float(CurrentSpacing)/128); data/wp2latex-3.92/sources.cc/pass1_3.cc:1004:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. {strcpy(ObjType, "!Table Start"); return;} data/wp2latex-3.92/sources.cc/pass1_3.cc:1125:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Table Start"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1320:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Corrupted!!"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1332:38: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0b: Terminate_Line(this,'p');strcpy(ObjType, "SRt SoftPg");break;// Soft page data/wp2latex-3.92/sources.cc/pass1_3.cc:1339:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x82: strcpy(ObjType,"!Cond Tab"); break; //Condensed Tab data/wp2latex-3.92/sources.cc/pass1_3.cc:1340:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x83: strcpy(ObjType,"!Cond BK Tab"); break; //Condensed Back Tab data/wp2latex-3.92/sources.cc/pass1_3.cc:1341:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x84: strcpy(ObjType,"!Cond Ind"); break; //Condensed Indent data/wp2latex-3.92/sources.cc/pass1_3.cc:1342:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x85: strcpy(ObjType,"!Cond Left/Right Ind"); break; //Condensed Left/Right Indent data/wp2latex-3.92/sources.cc/pass1_3.cc:1344:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8A: strcpy(ObjType,"!Highlite Off"); break; //Highlite Off data/wp2latex-3.92/sources.cc/pass1_3.cc:1345:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8B: strcpy(ObjType,"!Cursor Position"); break; //Cursor Position data/wp2latex-3.92/sources.cc/pass1_3.cc:1346:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8C: strcpy(ObjType,"!Raw Text Range"); break; //Raw Text Range data/wp2latex-3.92/sources.cc/pass1_3.cc:1347:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8D: strcpy(ObjType,"!Sel Raw Text Range"); break; //Selected Raw Text Range data/wp2latex-3.92/sources.cc/pass1_3.cc:1348:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8E: strcpy(ObjType,"!Conv Text Range"); break; //Converted Text Range data/wp2latex-3.92/sources.cc/pass1_3.cc:1349:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8F: strcpy(ObjType,"!Sel Conv Text Range"); break; //Select Converted Text Range data/wp2latex-3.92/sources.cc/pass1_3.cc:1350:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x90: strcpy(ObjType,"!End of Bookmark"); break; //End of Bookmark data/wp2latex-3.92/sources.cc/pass1_3.cc:1351:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x91: strcpy(ObjType,"!End of Hyperlink Text"); break; //End of Hyperlink Text data/wp2latex-3.92/sources.cc/pass1_3.cc:1352:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x92: strcpy(ObjType,"!Turn Disp Off"); break; //Turn Display Off data/wp2latex-3.92/sources.cc/pass1_3.cc:1353:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x93: strcpy(ObjType,"!Turn Disp On"); break; //Turn Display On data/wp2latex-3.92/sources.cc/pass1_3.cc:1354:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x94: strcpy(ObjType,"!End Center/Align"); break; //End Center/Align data/wp2latex-3.92/sources.cc/pass1_3.cc:1355:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x95: strcpy(ObjType,"!Begin Character Subst"); break; //Begin Character Substitution data/wp2latex-3.92/sources.cc/pass1_3.cc:1360:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x98: strcpy(ObjType,"!Auto Hyphen In Line"); break; //Auto Hyphen In Line data/wp2latex-3.92/sources.cc/pass1_3.cc:1365:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9C: strcpy(ObjType,"!Box Number"); break; //Box Number data/wp2latex-3.92/sources.cc/pass1_3.cc:1366:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9D: strcpy(ObjType,"!Chapter Number"); break; //Chapter Number data/wp2latex-3.92/sources.cc/pass1_3.cc:1367:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9E: strcpy(ObjType,"!Hide Functions ON"); break; //Hide Functions ON data/wp2latex-3.92/sources.cc/pass1_3.cc:1368:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9F: strcpy(ObjType,"!Hide Functions OFF"); break; //Hide Functions OFF data/wp2latex-3.92/sources.cc/pass1_3.cc:1373:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA2: strcpy(ObjType,"!Footnote Number"); break; //Footnote Number data/wp2latex-3.92/sources.cc/pass1_3.cc:1374:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA3: strcpy(ObjType,"!Table of Contents Placeholder"); break; //Table of Contents Placeholder data/wp2latex-3.92/sources.cc/pass1_3.cc:1375:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA4: strcpy(ObjType,"!Endnote Number"); break; //Endnote Number data/wp2latex-3.92/sources.cc/pass1_3.cc:1376:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA5: strcpy(ObjType,"!Start of Subtitle Text"); break; //Start of Subtitle Text data/wp2latex-3.92/sources.cc/pass1_3.cc:1377:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA6: strcpy(ObjType,"!End of Centered/Aligned Text"); break; //End of Centered/Aligned Text data/wp2latex-3.92/sources.cc/pass1_3.cc:1378:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA7: strcpy(ObjType,"!End of Generated Text"); break; //End of Generated Text data/wp2latex-3.92/sources.cc/pass1_3.cc:1381:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAA: strcpy(ObjType,"!Beg Par ON"); break; //Beginning of Paragraph ON data/wp2latex-3.92/sources.cc/pass1_3.cc:1382:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAB: strcpy(ObjType,"!Beg Par OFF"); break; //Beginning of Paragraph OFF data/wp2latex-3.92/sources.cc/pass1_3.cc:1383:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAC: strcpy(ObjType,"!Begin Enc Grp"); break; //Begin Encased Grouping data/wp2latex-3.92/sources.cc/pass1_3.cc:1384:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAD: strcpy(ObjType,"!End Enc Grp"); break; //End Encased Grouping data/wp2latex-3.92/sources.cc/pass1_3.cc:1385:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAE: strcpy(ObjType,"!Start TAB HdR"); break; //Start Table Header data/wp2latex-3.92/sources.cc/pass1_3.cc:1386:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xAF: strcpy(ObjType,"!End TAB Hdr"); break; //End Table Header data/wp2latex-3.92/sources.cc/pass1_3.cc:1391:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB2: strcpy(ObjType,"!Blk ON"); break; //Block ON data/wp2latex-3.92/sources.cc/pass1_3.cc:1392:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB3: strcpy(ObjType,"!Blk OFF"); break; //Block OFF data/wp2latex-3.92/sources.cc/pass1_3.cc:1397:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB6: strcpy(ObjType,"!Rev Video ON"); break; //Reverse Video ON data/wp2latex-3.92/sources.cc/pass1_3.cc:1398:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB7: strcpy(ObjType,"!Rev Video OFF"); break; //Reverse Video OFF data/wp2latex-3.92/sources.cc/pass1_3.cc:1399:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB8: strcpy(ObjType,"!Gen Mark #1"); break; //Generate Marker #1 data/wp2latex-3.92/sources.cc/pass1_3.cc:1400:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB9: strcpy(ObjType,"!Gen Mark #2"); break; //Generate Marker #2 data/wp2latex-3.92/sources.cc/pass1_3.cc:1401:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBA: strcpy(ObjType,"!Srch Mark #1"); break; //Search Marker #1 data/wp2latex-3.92/sources.cc/pass1_3.cc:1402:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBB: strcpy(ObjType,"!Srch Mark #2"); break; //Search Marker #2 data/wp2latex-3.92/sources.cc/pass1_3.cc:1403:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBC: strcpy(ObjType,"!Form EOL/EOP/EOC"); break; //Format to EOL/EOP/EOC data/wp2latex-3.92/sources.cc/pass1_3.cc:1404:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBD: strcpy(ObjType,"!Misc Form Mark"); break; //Misc Formatter Marker data/wp2latex-3.92/sources.cc/pass1_3.cc:1405:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBE: strcpy(ObjType,"!Reform Line Mark"); break; //Reformat Line Marker data/wp2latex-3.92/sources.cc/pass1_3.cc:1406:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBF: strcpy(ObjType,"NOP"); break; //No Operation data/wp2latex-3.92/sources.cc/pass1_3.cc:1417:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 3: strcpy(ObjType,"!Bk Tab"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1418:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 4: strcpy(ObjType,"!Chr Kern"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1419:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 5: strcpy(ObjType,"!Tab w/Vertical Line"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1420:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 6: strcpy(ObjType,"!Fix Tab"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1425:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0: strcpy(ObjType,"!Left Indent"); break; //Left Indent data/wp2latex-3.92/sources.cc/pass1_3.cc:1426:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1: strcpy(ObjType,"!L/R Indent"); break; //Left/Right Indent data/wp2latex-3.92/sources.cc/pass1_3.cc:1430:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC4: strcpy(ObjType,"!Emphasis Char"); break; //Emphasis Character data/wp2latex-3.92/sources.cc/pass1_3.cc:1431:20: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC5: strcpy(ObjType,"!Block Protect"); break; //Block Protect data/wp2latex-3.92/sources.cc/pass1_3.cc:1434:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC8: strcpy(ObjType,"!Dbl Byte Script Char"); break; //Double Byte Script Character data/wp2latex-3.92/sources.cc/pass1_3.cc:1436:20: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0xCC: sprintf(ObjType,"!Tmp Marker %d",subby); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1438:26: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0xCE: if(subby==0) sprintf(ObjType,"!Tmp Ch Spc"); // Temp Character Space Function data/wp2latex-3.92/sources.cc/pass1_3.cc:1439:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if(subby==1) sprintf(ObjType,"!Tmp Ch SpcExt"); // Temp Space-Extra Function data/wp2latex-3.92/sources.cc/pass1_3.cc:1440:22: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if(subby==0xFF) sprintf(ObjType,"!Tmp Ch Ext"); //Temp Char-Extra Function data/wp2latex-3.92/sources.cc/pass1_3.cc:1445:32: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0x01: sprintf(ObjType,"!Set Hor Margin"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1457:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(subby == 1) strcpy(ObjType,"!Font"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1458:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(subby == 2) strcpy(ObjType,"!Font Size"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1462:23: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(subby == 0xA) strcpy(ObjType,"!Def Sub/Sup Opt"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1467:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x01:strcpy(ObjType,"!Underline mode"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1506:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0: strcpy(ObjType, "!Endr Style Def"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1507:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1: strcpy(ObjType, "!Beg Par Style Def");break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1508:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2: strcpy(ObjType, "!Beg EOP Style"); break; // Begin End Paragraph Style Definition data/wp2latex-3.92/sources.cc/pass1_3.cc:1509:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3: strcpy(ObjType, "!Beg DOC Style"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1519:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1: strcpy(ObjType, "!SPg");break; // Soft end of page data/wp2latex-3.92/sources.cc/pass1_3.cc:1522:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "HRt-SPg"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1527:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Dorm HRt"); data/wp2latex-3.92/sources.cc/pass1_3.cc:1541:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x13:strcpy(ObjType, "!BOF"); break; // Hard beginning of file data/wp2latex-3.92/sources.cc/pass1_3.cc:1558:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1: strcpy(ObjType, "!Par Border On/Off"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1560:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x6: strcpy(ObjType, "!Txt Box Border On/Off"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1561:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x7: strcpy(ObjType, "!Usr Box Border On/Off"); break; data/wp2latex-3.92/sources.cc/pass1_3.cc:1562:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8: strcpy(ObjType, "!Equ Box Border On/Off"); break; data/wp2latex-3.92/sources.cc/pass1_4.cc:89:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, ":%u",(unsigned)subby); data/wp2latex-3.92/sources.cc/pass1_4.cc:102:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "ColDef:%d",(int)DefColumns); data/wp2latex-3.92/sources.cc/pass1_4.cc:164:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Comment"); data/wp2latex-3.92/sources.cc/pass1_4.cc:270:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Footnote"); data/wp2latex-3.92/sources.cc/pass1_4.cc:421:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Line Spacing %2.2f", float(CurrentSpacing)/128); data/wp2latex-3.92/sources.cc/pass1_4.cc:433:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Advance Up/Down %2.2f",offset); data/wp2latex-3.92/sources.cc/pass1_4.cc:494:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Index"); data/wp2latex-3.92/sources.cc/pass1_4.cc:511:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "!Overstrike"); data/wp2latex-3.92/sources.cc/pass1_4.cc:547:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Overstrike %c", by); data/wp2latex-3.92/sources.cc/pass1_4.cc:582:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Ptr Cmnd"); data/wp2latex-3.92/sources.cc/pass1_4.cc:691:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "TabSet"); data/wp2latex-3.92/sources.cc/pass1_4.cc:707:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Und Opt %u", (unsigned)UnderlineType); data/wp2latex-3.92/sources.cc/pass1_4.cc:786:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Corrupted!!"); data/wp2latex-3.92/sources.cc/pass1_4.cc:796:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x09:strcpy(ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1_4.cc:799:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0b:Terminate_Line(this,'p');strcpy(ObjType, "SRt SoftPg");break;/* Soft page break after a SRt */ data/wp2latex-3.92/sources.cc/pass1_4.cc:800:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0c:strcpy(ObjType, "HPg");Terminate_Line(this,'P');break; // Hard page data/wp2latex-3.92/sources.cc/pass1_4.cc:806:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x80:strcpy(ObjType, "NOP"); break; /* NOP */ data/wp2latex-3.92/sources.cc/pass1_4.cc:811:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Center End"); break; data/wp2latex-3.92/sources.cc/pass1_4.cc:822:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "HRt-SPg"); break; data/wp2latex-3.92/sources.cc/pass1_4.cc:830:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Underline"); break; data/wp2latex-3.92/sources.cc/pass1_4.cc:833:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "underline"); break; data/wp2latex-3.92/sources.cc/pass1_4.cc:839:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9B:strcpy(ObjType,"!End Gener Text");break; /* End of generated text */ data/wp2latex-3.92/sources.cc/pass1_4.cc:846:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA1: strcpy(ObjType, "!Do Subtot");break; /* Do subtotal - process0(SubTtl); */ data/wp2latex-3.92/sources.cc/pass1_4.cc:848:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA3: strcpy(ObjType, "!Do Total");break; /* Do total - process0(Ttl); */ data/wp2latex-3.92/sources.cc/pass1_4.cc:850:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA5: strcpy(ObjType, "!Do Grand Total");break; /* Do grand total - process0(GrandTtl); */ data/wp2latex-3.92/sources.cc/pass1_4.cc:851:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA6: strcpy(ObjType, "!CalcCol");break; /* Math calc column - process0(MathCalcColumn);*/ data/wp2latex-3.92/sources.cc/pass1_4.cc:871:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "SupScript"); data/wp2latex-3.92/sources.cc/pass1_4.cc:874:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "SubScript"); data/wp2latex-3.92/sources.cc/pass1_4.cc:878:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC0:strcpy(ObjType, "!Margin Reset"); break; /* Margin change */ data/wp2latex-3.92/sources.cc/pass1_4.cc:880:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC2:strcpy(ObjType, "!Left Mar Relese");break;/* Margin release */ data/wp2latex-3.92/sources.cc/pass1_4.cc:887:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "!Align(%d)", (int)subby); data/wp2latex-3.92/sources.cc/pass1_4.cc:895:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xCA:strcpy(ObjType, "!Cond EOP"); break; /* Conditional end of page */ data/wp2latex-3.92/sources.cc/pass1_4.cc:899:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xCE:strcpy(ObjType, "!Top Margin"); break; /* Set top margin */ data/wp2latex-3.92/sources.cc/pass1_4.cc:901:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD0:strcpy(ObjType, "!Form Len"); break; /* old form length */ /* Set page length */ data/wp2latex-3.92/sources.cc/pass1_4.cc:910:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD7:strcpy(ObjType, "!Math Cols"); break; /* Define math columns */ data/wp2latex-3.92/sources.cc/pass1_4.cc:933:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xEE:strcpy(ObjType, "!ParNumDef"); break; /* paragraph number def */ data/wp2latex-3.92/sources.cc/pass1_5.cc:34:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char SizesC0[0x10] = { data/wp2latex-3.92/sources.cc/pass1_5.cc:412:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"Non editable disp"); data/wp2latex-3.92/sources.cc/pass1_5.cc:577:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "%u,%u", wchr_code & 0xFF, wchr_code>>8); data/wp2latex-3.92/sources.cc/pass1_5.cc:585:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *BoxNames[6]={"Figure","Table Box","Text Box","Usr Box","Equation","!Box?"}; data/wp2latex-3.92/sources.cc/pass1_5.cc:606:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "!Box"); data/wp2latex-3.92/sources.cc/pass1_5.cc:789:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "%u,%u", WChar>>8, WChar & 0xFF); data/wp2latex-3.92/sources.cc/pass1_5.cc:801:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str2[2]; data/wp2latex-3.92/sources.cc/pass1_5.cc:869:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Index"); data/wp2latex-3.92/sources.cc/pass1_5.cc:893:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Label"); data/wp2latex-3.92/sources.cc/pass1_5.cc:918:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Reference"); data/wp2latex-3.92/sources.cc/pass1_5.cc:986:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "End Align"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1001:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "ColDef:%d",(int)DefColumns); data/wp2latex-3.92/sources.cc/pass1_5.cc:1057:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Comment"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1118:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Endnote"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1211:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Footnote"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1322:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Line Spacing %2.2f",float(CurrentSpacing)/128); data/wp2latex-3.92/sources.cc/pass1_5.cc:1342:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType, "Start MarkToL:%d",(int)(b&0xDF) + 1); data/wp2latex-3.92/sources.cc/pass1_5.cc:1425:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Overstrike"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1508:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. FAIL: strcpy(ObjType, "!Table Start"); return; data/wp2latex-3.92/sources.cc/pass1_5.cc:1630:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Table Start"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1685:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "L/R Mar"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1775:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Corrupted!!"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1788:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0B:Terminate_Line(this,'p');strcpy(ObjType, "SRt SoftPg");break;// Soft page data/wp2latex-3.92/sources.cc/pass1_5.cc:1793:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x80:strcpy(ObjType, "NOP"); break; // NOP data/wp2latex-3.92/sources.cc/pass1_5.cc:1798:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x85:strcpy(ObjType, "Temp"); break; // Place Saver data/wp2latex-3.92/sources.cc/pass1_5.cc:1807:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "HRT"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1809:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8D:strcpy(ObjType, "!Note Num"); break; // Footnote/Endnote# - inside footnote data/wp2latex-3.92/sources.cc/pass1_5.cc:1810:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8E:strcpy(ObjType, "!Fig Num"); break; // Figure # data/wp2latex-3.92/sources.cc/pass1_5.cc:1812:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "~Center"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1815:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "DSRt"); break; // Deletable return at end of the line. data/wp2latex-3.92/sources.cc/pass1_5.cc:1817:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "DSPg"); break; // Deletable return at end of the page. data/wp2latex-3.92/sources.cc/pass1_5.cc:1818:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x92:strcpy(ObjType, "Deleted EOPg"); break; // Deleted EOPg data/wp2latex-3.92/sources.cc/pass1_5.cc:1822:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x96:strcpy(ObjType, "!Block On"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1823:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x97:strcpy(ObjType, "!Block Off"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1828:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Dorm HRt"); data/wp2latex-3.92/sources.cc/pass1_5.cc:1831:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9B:strcpy(ObjType, "End Def"); break; // End of automatically generated definition data/wp2latex-3.92/sources.cc/pass1_5.cc:1838:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA1:strcpy(ObjType, "!Subtotal do"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1839:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA2:strcpy(ObjType, "!Subtotal entry"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1840:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA3:strcpy(ObjType, "!Total do"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1841:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA4:strcpy(ObjType, "!Total entry"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1842:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA5:strcpy(ObjType, "!GrangTotal do"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1843:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA6:strcpy(ObjType, "!GrangTotal entry"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1844:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA7:strcpy(ObjType, "!Math On"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1845:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA8:strcpy(ObjType, "!Math Off"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1854:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB1:strcpy(ObjType, "!Math negate"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1855:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB2:strcpy(ObjType, "!Outline Off"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1856:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB3:strcpy(ObjType, "!Rev Dir On"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1857:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB4:strcpy(ObjType, "!Rev Dir Off"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1859:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBD:strcpy(ObjType, "!Auto cod On"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1860:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xBE:strcpy(ObjType, "!Auto cod Off"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1881:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC5:strcpy(ObjType, "!Blk protect"); break; // block protect data/wp2latex-3.92/sources.cc/pass1_5.cc:1919:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0A:strcpy(ObjType,"!Space Width"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1920:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0B:strcpy(ObjType,"!Space Exp"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1921:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0C:strcpy(ObjType,"!GrBox Num Fig"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1922:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0D:strcpy(ObjType,"!GrBox Num Tab"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1923:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0E:strcpy(ObjType,"!GrBox Num TXT"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1924:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0F:strcpy(ObjType,"!GrBox Num UsrBox"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1925:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x10:strcpy(ObjType,"!GrBox Num Equ"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1927:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x12:strcpy(ObjType,"!PgNumStyle"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1928:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x13:strcpy(ObjType,"!SetDirection"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1933:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0: strcpy(ObjType,"!EOP internal"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1934:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1: strcpy(ObjType,"!BOL internal"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1935:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 2: strcpy(ObjType,"!Gr Box Info"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1936:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 3: strcpy(ObjType,"!Repositioning Marker"); break; data/wp2latex-3.92/sources.cc/pass1_5.cc:1985:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if (subby == 6) strcpy(ObjType, "!VLine"); data/wp2latex-3.92/sources.cc/pass1_6.cc:37:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char CharsWP6_1_32[0x21] = { //Default extended international characters (from 0) data/wp2latex-3.92/sources.cc/pass1_6.cc:104:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *RefTypes[10] = { data/wp2latex-3.92/sources.cc/pass1_6.cc:193:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ss[13] = "00_RHack.txt"; data/wp2latex-3.92/sources.cc/pass1_6.cc:425:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Back Tab"); data/wp2latex-3.92/sources.cc/pass1_6.cc:441:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Back Tab"); data/wp2latex-3.92/sources.cc/pass1_6.cc:934:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). SrcOLE = fopen(temp_filename(),"rb"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1140:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Col"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1151:1: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Col Def:%d",(int)NoColumns); data/wp2latex-3.92/sources.cc/pass1_6.cc:1244:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Comment"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1412:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Endnote"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1441:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Filename"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1594:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Footnote"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1609:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Formatted Footnote Num"); data/wp2latex-3.92/sources.cc/pass1_6.cc:1626:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char Occurance6to5[4] = {0,2,4,1}; data/wp2latex-3.92/sources.cc/pass1_6.cc:1783:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "Line Spacing %2.2f",float(CurrentSpacing)/0x10000); data/wp2latex-3.92/sources.cc/pass1_6.cc:1877:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Overstrike"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2122:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "!Endnote Num"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2130:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Formatted Endnote Num"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2186:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Index"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2232:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Label"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2312:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Formatted Pg Num"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2393:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Def Mark:ToC"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2395:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 1:sprintf(ObjType, "!Def Mark:List"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2399:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Def Mark:Index"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2401:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 3:sprintf(ObjType, "!Def Mark:ToA"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2405:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. default: strcpy(ObjType, "!Def Mark:?Unknown"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2822:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Corrupted!!"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2872:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x85:fputs("\\-", strip);strcpy(ObjType, "- Auto Hyphen"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2876:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Dorm HRt"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2884:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "TH_EOC/EOP"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2889:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "THRt"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2911:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 3:SoftReturn(this); strcpy(ObjType, "SRt-SPg"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2915:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "HRt-SPg"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2926:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "THCol"); data/wp2latex-3.92/sources.cc/pass1_6.cc:2932:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0:strcpy(ObjType,"!Top Margin");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2933:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1:strcpy(ObjType,"!Bottom Margin");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2937:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 5:strcpy(ObjType,"!Center Page Top Bottom"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2939:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 7:strcpy(ObjType,"!Set Footnote spaces");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2940:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 8:strcpy(ObjType,"!Set Endnote spaces");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2942:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0D:strcpy(ObjType,"!Endnote pos"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2943:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0E:strcpy(ObjType,"!Footnote sep line"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2944:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0F:strcpy(ObjType,"!Bind Width"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2945:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x10:strcpy(ObjType,"!Page border"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2946:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(ObjType,"!Form"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2947:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x12:strcpy(ObjType,"!Form Labels");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2948:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x13:strcpy(ObjType,"!Double Sided Printing");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2949:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x14:strcpy(ObjType,"!Logical Pages");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2950:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x15:strcpy(ObjType,"!Delayed Codes");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2951:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x16:strcpy(ObjType,"!Delay on"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2952:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x17:strcpy(ObjType,"!~Delay on"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2957:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0: strcpy(ObjType,"!Left Margin");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2958:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1: strcpy(ObjType,"!Right Margin");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2968:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 8:strcpy(ObjType,"!Begin Generated Text");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2969:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 9:strcpy(ObjType,"!End Generated Text");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2970:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA:strcpy(ObjType,"!Spacing after par");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2971:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB:strcpy(ObjType,"!Indent 1st line");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2972:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xC:strcpy(ObjType,"!Left Margin Adjust");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2973:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD:strcpy(ObjType,"!Right Margin Adjust");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2974:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xE:strcpy(ObjType,"!Outline Define");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2975:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xF:strcpy(ObjType,"!Par border");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2976:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x10:strcpy(ObjType,"!Math cols");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2977:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(ObjType,"!Math on/off");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2979:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x13:strcpy(ObjType,"!Force odd/even/new");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2981:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x15:strcpy(ObjType,"!Endnotes here");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2983:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x17:strcpy(ObjType,"!Def drom cap");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2988:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x00:strcpy(ObjType,"!Align char");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2989:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x01:strcpy(ObjType,"!Thousand sep");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2990:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x02:strcpy(ObjType,"!Und space mode");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:2991:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x03:strcpy(ObjType,"!Und TAB mode");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3010:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x23:strcpy(ObjType,"!Char Space/Width");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3011:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x24:strcpy(ObjType,"!Space expansion");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3012:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x25:strcpy(ObjType,"!Bookmark");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3013:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x26:strcpy(ObjType,"!Protect blk on");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3014:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x27:strcpy(ObjType,"!Protect blk off");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3015:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x28:strcpy(ObjType,"!Printer pause");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3019:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2C:strcpy(ObjType,"!Table Hdr");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3022:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2F:strcpy(ObjType,"~Filename"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3024:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x32:strcpy(ObjType,"!Par Num On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3025:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x33:strcpy(ObjType,"!Par Num Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3047:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 17:strcpy(ObjType,"~Ref"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3055:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1: strcpy(ObjType,"~Footnote"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3057:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 3: strcpy(ObjType,"~EndNote"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3072:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 1:strcpy(ObjType,"~User Counter");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3075:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 5:strcpy(ObjType, "~Pg Num"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3078:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"!Par Num Disp"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3079:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD:strcpy(ObjType,"!~Par Num Disp"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3081:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xF:strcpy(ObjType,"~Footnote Num"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3083:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x11:strcpy(ObjType,"~Endnote Num"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3108:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0:strcpy(ObjType,"!Style Begin On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3109:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x1:strcpy(ObjType,"!Style Begin Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3110:23: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x2:strcpy(ObjType,"!Style End On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3111:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x3:strcpy(ObjType,"!Style End Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3112:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x4:strcpy(ObjType,"!Par Style 1 Beg On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3113:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x5:strcpy(ObjType,"!Par Style 1 Beg Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3114:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x6:strcpy(ObjType,"!Par Style 2 Beg On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3115:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x7:strcpy(ObjType,"!Par Style 2 Beg Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3116:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x8:strcpy(ObjType,"!Par Style End On"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3117:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x9:strcpy(ObjType,"!Par Style End Off"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3118:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xA:strcpy(ObjType,"!Global on"); break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3119:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xB:strcpy(ObjType,"!Global off");break; data/wp2latex-3.92/sources.cc/pass1_6.cc:3133:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0xD1:strcpy(ObjType, "!Dec Tab"); data/wp2latex-3.92/sources.cc/pass1_6.cc:3135:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. default:sprintf(ObjType,"!TAB %Xh",subby); data/wp2latex-3.92/sources.cc/pass1_6.cc:3153:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType,"%u,%u", Wchar>>8, Wchar & 0xFF); data/wp2latex-3.92/sources.cc/pass1abi.cc:299:4: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i=atoi(d.Member(i,1)); data/wp2latex-3.92/sources.cc/pass1abi.cc:579:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Table Start"); data/wp2latex-3.92/sources.cc/pass1abi.cc:604:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 9:strcpy(ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1acc.cc:92:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 9:strcpy(cq->ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1c45.cc:190:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((DecryptedFile=fopen(temp_filename,"rb"))==NULL) return(0); data/wp2latex-3.92/sources.cc/pass1c45.cc:275:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((DecryptedFile=fopen(temp_filename,"rb"))==NULL) return(0); data/wp2latex-3.92/sources.cc/pass1c45.cc:342:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((DecryptedFile=fopen(temp_filename,"rb"))==NULL) //reopen file for reading data/wp2latex-3.92/sources.cc/pass1dcb.cc:117:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Itemize Start"); data/wp2latex-3.92/sources.cc/pass1dcb.cc:178:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "chapter"); data/wp2latex-3.92/sources.cc/pass1dcb.cc:204:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 9:strcpy(cq->ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1htm.cc:292:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *F = fopen(NewFileName(),"wb"); data/wp2latex-3.92/sources.cc/pass1htm.cc:431:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Itemize Start"); data/wp2latex-3.92/sources.cc/pass1htm.cc:457:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Meta"); data/wp2latex-3.92/sources.cc/pass1htm.cc:614:1: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Table Start"); data/wp2latex-3.92/sources.cc/pass1htm.cc:635:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Style"); data/wp2latex-3.92/sources.cc/pass1htm.cc:658:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Title Start"); data/wp2latex-3.92/sources.cc/pass1htm.cc:684:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 9:strcpy(this->ObjType, "!Tab"); data/wp2latex-3.92/sources.cc/pass1htm.cc:716:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(tag+1); data/wp2latex-3.92/sources.cc/pass1htm.cc:813:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case TAG_DIRECTION: strcpy(ObjType, "!Direction"); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:637:26: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if(cq->subby & 1) {sprintf(cq->ObjType, "LINE{}");return;} data/wp2latex-3.92/sources.cc/pass1mtf.cc:643:40: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. if(cq->subby & MtefO_LINE_NULL) {sprintf(cq->ObjType, "LINE{}");return;} data/wp2latex-3.92/sources.cc/pass1mtf.cc:660:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "~LINE #%d", iLineNo); data/wp2latex-3.92/sources.cc/pass1mtf.cc:722:1: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "EMBELL %u",(unsigned)Embell); data/wp2latex-3.92/sources.cc/pass1mtf.cc:737:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Num[2]="0"; data/wp2latex-3.92/sources.cc/pass1mtf.cc:816:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "~TMPL %d,%d",(int)Selector,(int)Variation); data/wp2latex-3.92/sources.cc/pass1mtf.cc:845:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "!PILE"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:891:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "!MATRIX"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:973:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "~MATRIX"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:990:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "!RULER"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1020:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "!FONT_STYLE"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1057:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType, "CHAR %d:0x%X %c",(int)Typeface,CHAR,(char)CHAR); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1106:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0: sprintf(cq->ObjType, "END"); break; //EndRecord; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1115:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 9: sprintf(cq->ObjType,"SIZE"); GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1116:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 10:sprintf(cq->ObjType,"FULL"); GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1117:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 11:sprintf(cq->ObjType,"SUB"); GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1118:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 12:sprintf(cq->ObjType,"SUB2"); GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1119:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 13:sprintf(cq->ObjType,"SYM"); GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1120:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 14:sprintf(cq->ObjType,"SUBSYM");GetSize(cq); break; data/wp2latex-3.92/sources.cc/pass1mtf.cc:1122:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 17:sprintf(cq->ObjType, "FONT_DEF"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1128:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 18:sprintf(cq->ObjType, "EQN_PREFS"); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1149:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 19:sprintf(cq->ObjType, "ENCODING_DEF"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:333:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). txt = fopen(FileName(),"rb"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:797:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cq->fParam = atoi(cq->Parameter()); data/wp2latex-3.92/sources.cc/pass1rtf.cc:798:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cq->lParam = atol(cq->Parameter()); data/wp2latex-3.92/sources.cc/pass1rtf.cc:943:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 1:pos=atol(Str); state=2; break; data/wp2latex-3.92/sources.cc/pass1rtf.cc:1060:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Footnote"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1135:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Font Table"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1294:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Index"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1396:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(cq->ObjType, "Label"); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1405:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[10]; data/wp2latex-3.92/sources.cc/pass1rtf.cc:1436:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(dummy,"U%ld ",cq->lParam); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1687:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cq->ObjType,"Font:%ld",cq->lParam); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1859:41: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(cq->lParam) {AttrOn(cq->attr,15);strcpy(cq->ObjType, "smcap");} /* Start small capitals */ data/wp2latex-3.92/sources.cc/pass1rtf.cc:1860:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. else {AttrOff(cq,15);strcpy(cq->ObjType, "~smcap");} /* End small capitals */ data/wp2latex-3.92/sources.cc/pass1rtf.cc:1870:40: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(cq->lParam) {AttrOn(cq->attr,9);strcpy(cq->ObjType, "shad");} /* Start shadow */ data/wp2latex-3.92/sources.cc/pass1rtf.cc:1871:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. else {AttrOff(cq,9);strcpy(cq->ObjType, "~shad");} /* End shadow */ data/wp2latex-3.92/sources.cc/pass1rtf.cc:1886:41: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. if(cq->lParam) {AttrOn(cq->attr,13);strcpy(cq->ObjType, "stkout");} /* Start strike out */ data/wp2latex-3.92/sources.cc/pass1rtf.cc:1887:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. else {AttrOff(cq,13);strcpy(cq->ObjType, "~stkout");} /* End strike out */ data/wp2latex-3.92/sources.cc/pass1wmf.cc:376:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType+6," MTEF"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:383:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"!Escape - MTEF"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:388:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"!Escape"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:763:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"SetBkColor"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:779:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"SetTextColor"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:790:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType,"SetWindowExt(%d,%d)", (int)XExtent, (int)YExtent); data/wp2latex-3.92/sources.cc/pass1wmf.cc:801:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ObjType,"SetWindowOrg(%d,%d)", (int)XOffset, (int)YOffset); data/wp2latex-3.92/sources.cc/pass1wmf.cc:832:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pVecLine->LineColor, &PSS.LineColor, sizeof(PSS.LineColor)); data/wp2latex-3.92/sources.cc/pass1wmf.cc:929:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pVecPoly->FillColor, &PSS.FillColor, sizeof(PSS.FillColor)); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1274:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType,"StretchDIBits"); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1314:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0000: strcpy(ObjType,"WMF End"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1316:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x001E: strcpy(ObjType,"!SaveDC"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1318:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0035: strcpy(ObjType,"!RealizePalette"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1319:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0037: strcpy(ObjType,"!SetPalEntries"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1321:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x004F: strcpy(ObjType,"!StartPage"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1322:22: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0050: strcpy(ObjType,"!EndPage"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1324:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0052: strcpy(ObjType,"!AbortDoc"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1325:22: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x005E: strcpy(ObjType,"!EndDoc"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1327:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x00F7: strcpy(ObjType,"!CreatePalette"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1328:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x00F8: strcpy(ObjType,"!CreateBrush"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1330:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0102: strcpy(ObjType,"!SetBkMode"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1332:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0104: strcpy(ObjType,"!SetROP2"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1333:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0105: strcpy(ObjType,"!SetRelabs"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1335:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0107: strcpy(ObjType,"!SetStretchBltMode"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1336:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0108: strcpy(ObjType,"!SetTextCharExtra"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1338:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0127: strcpy(ObjType,"!RestoreDC"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1340:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x012A: strcpy(ObjType,"!InvertRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1341:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x012B: strcpy(ObjType,"!PaintRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1342:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x012C: strcpy(ObjType,"!SelectClipRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1344:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x012E: strcpy(ObjType,"!SetTextAlign"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1346:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0139: strcpy(ObjType,"!ResizePalette"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1348:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0142: strcpy(ObjType,"!DibCreatePatternBrush"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1350:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x014C: strcpy(ObjType,"!ResetDc"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1351:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x014D: strcpy(ObjType,"!StartDoc"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1355:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x01F9: strcpy(ObjType,"!CreatePatternBrush"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1360:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x020A: strcpy(ObjType,"!SetTextJustification"); break;//? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1363:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x020D: strcpy(ObjType,"!SetViewportOrg"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1364:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x020E: strcpy(ObjType,"!SetViewportExt"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1365:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x020F: strcpy(ObjType,"!OffsetWindowOrg"); break; //? data/wp2latex-3.92/sources.cc/pass1wmf.cc:1367:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0211: strcpy(ObjType,"!OffsetViewportOrg"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1371:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0220: strcpy(ObjType,"!OffsetClipRgn"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1373:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0228: strcpy(ObjType,"!FillRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1375:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0231: strcpy(ObjType,"!SetMapperFlags"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1377:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0234: strcpy(ObjType,"!SelectPalette"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1382:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x02FD: strcpy(ObjType,"!CreateBitmapIndirect"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1387:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0410: strcpy(ObjType,"!ScaleWindowExt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1389:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0412: strcpy(ObjType,"!ScaleViewportExt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1391:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0415: strcpy(ObjType,"!ExcludeClipRect"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1392:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0416: strcpy(ObjType,"!IntersectClipRect"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1395:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0419: strcpy(ObjType,"!FloodFill"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1399:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x041F: strcpy(ObjType,"!SetPixel"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1401:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0429: strcpy(ObjType,"!FrameRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1403:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0436: strcpy(ObjType,"!AnimatePalette"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1408:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0548: strcpy(ObjType,"!ExtFloodFill"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1410:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x061C: strcpy(ObjType,"!RoundRect"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1411:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x061D: strcpy(ObjType,"!PatBlt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1415:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x062F: strcpy(ObjType,"!DrawText"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1417:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x06FE: strcpy(ObjType,"!CreateBitmap"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1418:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x06FF: strcpy(ObjType,"!CreateRegion"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1420:22: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0817: strcpy(ObjType,"!Arc"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1422:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x081A: strcpy(ObjType,"!Pie"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1426:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0922: strcpy(ObjType,"!BitBlt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1428:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0940: strcpy(ObjType,"!DibBitblt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1432:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0B23: strcpy(ObjType,"!StretchBlt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1434:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0B41: strcpy(ObjType,"!DibStretchBlt"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1436:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case 0x0d33: strcpy(ObjType,"!SetDibToDev"); break; data/wp2latex-3.92/sources.cc/pass1wmf.cc:1441:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. default: sprintf(ObjType,"!Unknown#%X", WmfRec.Function); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1910:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_HEADER: strcpy(ObjType,"!HEADER"); break; // 0x00000001 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1911:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYBEZIER: strcpy(ObjType,"!POLYBEZIER"); break; // 0x00000002 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1912:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYGON: strcpy(ObjType,"!POLYGON"); break; // 0x00000003 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1913:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYLINE: strcpy(ObjType,"!POLYLINE"); break; // 0x00000004 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1914:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYBEZIERTO: strcpy(ObjType,"!POLYBEZIERTO"); break; // 0x00000005 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1915:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYLINETO: strcpy(ObjType,"!POLYLINETO"); break; // 0x00000006 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1916:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYPOLYLINE: strcpy(ObjType,"!POLYPOLYLINE"); break; // 0x00000007 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1917:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYPOLYGON: strcpy(ObjType,"!POLYPOLYGON"); break; // 0x00000008 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1918:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETWINDOWEXTEX: strcpy(ObjType,"!SETWINDOWEXTEX"); break; // 0x00000009 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1919:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETWINDOWORGEX: strcpy(ObjType,"!SETWINDOWORGEX"); break; // 0x0000000A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1920:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETVIEWPORTEXTEX: strcpy(ObjType,"!SETVIEWPORTEXTEX"); break; // 0x0000000B data/wp2latex-3.92/sources.cc/pass1wmf.cc:1921:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETVIEWPORTORGEX: strcpy(ObjType,"!SETVIEWPORTORGEX"); break; // 0x0000000C data/wp2latex-3.92/sources.cc/pass1wmf.cc:1922:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETBRUSHORGEX: strcpy(ObjType,"!SETBRUSHORGEX"); break; // 0x0000000D data/wp2latex-3.92/sources.cc/pass1wmf.cc:1923:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EOF: strcpy(ObjType,"!EOF"); break; // 0x0000000E data/wp2latex-3.92/sources.cc/pass1wmf.cc:1924:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETPIXELV: strcpy(ObjType,"!SETPIXELV"); break; // 0x0000000F data/wp2latex-3.92/sources.cc/pass1wmf.cc:1925:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETMAPPERFLAGS: strcpy(ObjType,"!SETMAPPERFLAGS"); break; // 0x00000010 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1926:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETMAPMODE: strcpy(ObjType,"!SETMAPMODE"); break; // 0x00000011 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1927:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETBKMODE: strcpy(ObjType,"!SETBKMODE"); break; // 0x00000012 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1928:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETPOLYFILLMODE: strcpy(ObjType,"!SETPOLYFILLMODE"); break; // 0x00000013 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1929:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETROP2: strcpy(ObjType,"!SETROP2"); break; // 0x00000014 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1930:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETSTRETCHBLTMODE: strcpy(ObjType,"!SETSTRETCHBLTMODE"); break; // 0x00000015 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1931:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETTEXTALIGN: strcpy(ObjType,"!SETTEXTALIGN"); break; // 0x00000016 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1932:36: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETCOLORADJUSTMENT: strcpy(ObjType,"!SETCOLORADJUSTMENT"); break; // 0x00000017 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1933:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETTEXTCOLOR: strcpy(ObjType,"!SETTEXTCOLOR"); break; // 0x00000018 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1934:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETBKCOLOR: strcpy(ObjType,"!SETBKCOLOR"); break; // 0x00000019 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1935:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_OFFSETCLIPRGN: strcpy(ObjType,"!OFFSETCLIPRGN"); break; // 0x0000001A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1936:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_MOVETOEX: strcpy(ObjType,"!MOVETOEX"); break; // 0x0000001B data/wp2latex-3.92/sources.cc/pass1wmf.cc:1937:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETMETARGN: strcpy(ObjType,"!SETMETARGN"); break; // 0x0000001C data/wp2latex-3.92/sources.cc/pass1wmf.cc:1938:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXCLUDECLIPRECT: strcpy(ObjType,"!EXCLUDECLIPRECT"); break; // 0x0000001D data/wp2latex-3.92/sources.cc/pass1wmf.cc:1939:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_INTERSECTCLIPRECT: strcpy(ObjType,"!INTERSECTCLIPRECT"); break; // 0x0000001E data/wp2latex-3.92/sources.cc/pass1wmf.cc:1940:36: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SCALEVIEWPORTEXTEX: strcpy(ObjType,"!SCALEVIEWPORTEXTEX"); break; // 0x0000001F data/wp2latex-3.92/sources.cc/pass1wmf.cc:1941:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SCALEWINDOWEXTEX: strcpy(ObjType,"!SCALEWINDOWEXTEX"); break; // 0x00000020 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1942:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SAVEDC: strcpy(ObjType,"!SAVEDC"); break; // 0x00000021 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1943:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_RESTOREDC: strcpy(ObjType,"!RESTOREDC"); break; // 0x00000022 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1944:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETWORLDTRANSFORM: strcpy(ObjType,"!SETWORLDTRANSFORM"); break; // 0x00000023 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1945:38: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_MODIFYWORLDTRANSFORM: strcpy(ObjType,"!MODIFYWORLDTRANSFORM"); break; // 0x00000024 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1946:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SELECTOBJECT: strcpy(ObjType,"!SELECTOBJECT"); break; // 0x00000025 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1947:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATEPEN: strcpy(ObjType,"!CREATEPEN"); break; // 0x00000026 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1948:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATEBRUSHINDIRECT: strcpy(ObjType,"!CREATEBRUSHINDIRECT"); break; // 0x00000027 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1949:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_DELETEOBJECT: strcpy(ObjType,"!DELETEOBJECT"); break; // 0x00000028 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1950:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ANGLEARC: strcpy(ObjType,"!ANGLEARC"); break; // 0x00000029 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1951:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ELLIPSE: strcpy(ObjType,"!ELLIPSE"); break; // 0x0000002A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1952:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_RECTANGLE: strcpy(ObjType,"!RECTANGLE"); break; // 0x0000002B data/wp2latex-3.92/sources.cc/pass1wmf.cc:1953:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ROUNDRECT: strcpy(ObjType,"!ROUNDRECT"); break; // 0x0000002C data/wp2latex-3.92/sources.cc/pass1wmf.cc:1954:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ARC: strcpy(ObjType,"!ARC"); break; // 0x0000002D data/wp2latex-3.92/sources.cc/pass1wmf.cc:1955:23: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CHORD: strcpy(ObjType,"!CHORD"); break; // 0x0000002E data/wp2latex-3.92/sources.cc/pass1wmf.cc:1956:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_PIE: strcpy(ObjType,"!PIE"); break; // 0x0000002F data/wp2latex-3.92/sources.cc/pass1wmf.cc:1957:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SELECTPALETTE: strcpy(ObjType,"!SELECTPALETTE"); break; // 0x00000030 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1958:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATEPALETTE: strcpy(ObjType,"!CREATEPALETTE"); break; // 0x00000031 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1959:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETPALETTEENTRIES: strcpy(ObjType,"!SETPALETTEENTRIES"); break; // 0x00000032 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1960:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_RESIZEPALETTE: strcpy(ObjType,"!RESIZEPALETTE"); break; // 0x00000033 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1961:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_REALIZEPALETTE: strcpy(ObjType,"!REALIZEPALETTE"); break; // 0x00000034 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1962:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTFLOODFILL: strcpy(ObjType,"!EXTFLOODFILL"); break; // 0x00000035 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1963:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_LINETO: strcpy(ObjType,"!LINETO"); break; // 0x00000036 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1964:23: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ARCTO: strcpy(ObjType,"!ARCTO"); break; // 0x00000037 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1965:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYDRAW: strcpy(ObjType,"!POLYDRAW"); break; // 0x00000038 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1966:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETARCDIRECTION: strcpy(ObjType,"!SETARCDIRECTION"); break; // 0x00000039 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1967:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETMITERLIMIT: strcpy(ObjType,"!SETMITERLIMIT"); break; // 0x0000003A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1968:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_BEGINPATH: strcpy(ObjType,"!BEGINPATH"); break; // 0x0000003B data/wp2latex-3.92/sources.cc/pass1wmf.cc:1969:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ENDPATH: strcpy(ObjType,"!ENDPATH"); break; // 0x0000003C data/wp2latex-3.92/sources.cc/pass1wmf.cc:1970:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CLOSEFIGURE: strcpy(ObjType,"!CLOSEFIGURE"); break; // 0x0000003D data/wp2latex-3.92/sources.cc/pass1wmf.cc:1971:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_FILLPATH: strcpy(ObjType,"!FILLPATH"); break; // 0x0000003E data/wp2latex-3.92/sources.cc/pass1wmf.cc:1972:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_STROKEANDFILLPATH: strcpy(ObjType,"!STROKEANDFILLPATH"); break; // 0x0000003F data/wp2latex-3.92/sources.cc/pass1wmf.cc:1973:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_STROKEPATH: strcpy(ObjType,"!STROKEPATH"); break; // 0x00000040 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1974:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_FLATTENPATH: strcpy(ObjType,"!FLATTENPATH"); break; // 0x00000041 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1975:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_WIDENPATH: strcpy(ObjType,"!WIDENPATH"); break; // 0x00000042 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1976:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SELECTCLIPPATH: strcpy(ObjType,"!SELECTCLIPPATH"); break; // 0x00000043 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1977:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ABORTPATH: strcpy(ObjType,"!ABORTPATH"); break; // 0x00000044 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1978:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_COMMENT: strcpy(ObjType,"!COMMENT"); break; // 0x00000046 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1979:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_FILLRGN: strcpy(ObjType,"!FILLRGN"); break; // 0x00000047 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1980:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_FRAMERGN: strcpy(ObjType,"!FRAMERGN"); break; // 0x00000048 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1981:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_INVERTRGN: strcpy(ObjType,"!INVERTRGN"); break; // 0x00000049 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1982:26: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_PAINTRGN: strcpy(ObjType,"!PAINTRGN"); break; // 0x0000004A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1983:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTSELECTCLIPRGN: strcpy(ObjType,"!EXTSELECTCLIPRGN"); break; // 0x0000004B data/wp2latex-3.92/sources.cc/pass1wmf.cc:1984:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_BITBLT: strcpy(ObjType,"!BITBLT"); break; // 0x0000004C data/wp2latex-3.92/sources.cc/pass1wmf.cc:1985:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_STRETCHBLT: strcpy(ObjType,"!STRETCHBLT"); break; // 0x0000004D data/wp2latex-3.92/sources.cc/pass1wmf.cc:1986:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_MASKBLT: strcpy(ObjType,"!MASKBLT"); break; // 0x0000004E data/wp2latex-3.92/sources.cc/pass1wmf.cc:1987:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_PLGBLT: strcpy(ObjType,"!PLGBLT"); break; // 0x0000004F data/wp2latex-3.92/sources.cc/pass1wmf.cc:1988:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETDIBITSTODEVICE: strcpy(ObjType,"!SETDIBITSTODEVICE"); break; // 0x00000050 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1989:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_STRETCHDIBITS: strcpy(ObjType,"!STRETCHDIBITS"); break; // 0x00000051 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1990:40: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTCREATEFONTINDIRECTW: strcpy(ObjType,"!EXTCREATEFONTINDIRECTW"); break; // 0x00000052 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1991:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTTEXTOUTA: strcpy(ObjType,"!EXTTEXTOUTA"); break; // 0x00000053 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1992:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTTEXTOUTW: strcpy(ObjType,"!EXTTEXTOUTW"); break; // 0x00000054 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1993:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYBEZIER16: strcpy(ObjType,"!POLYBEZIER16"); break; // 0x00000055 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1994:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYGON16: strcpy(ObjType,"!POLYGON16"); break; // 0x00000056 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1995:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYLINE16: strcpy(ObjType,"!POLYLINE16"); break; // 0x00000057 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1996:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYBEZIERTO16: strcpy(ObjType,"!POLYBEZIERTO16"); break; // 0x00000058 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1997:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYLINETO16: strcpy(ObjType,"!POLYLINETO16"); break; // 0x00000059 data/wp2latex-3.92/sources.cc/pass1wmf.cc:1998:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYPOLYLINE16: strcpy(ObjType,"!POLYPOLYLINE16"); break; // 0x0000005A data/wp2latex-3.92/sources.cc/pass1wmf.cc:1999:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYPOLYGON16: strcpy(ObjType,"!POLYPOLYGON16"); break; // 0x0000005B data/wp2latex-3.92/sources.cc/pass1wmf.cc:2000:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYDRAW16: strcpy(ObjType,"!POLYDRAW16"); break; // 0x0000005C data/wp2latex-3.92/sources.cc/pass1wmf.cc:2001:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATEMONOBRUSH: strcpy(ObjType,"!CREATEMONOBRUSH"); break; // 0x0000005D data/wp2latex-3.92/sources.cc/pass1wmf.cc:2002:41: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATEDIBPATTERNBRUSHPT: strcpy(ObjType,"!CREATEDIBPATTERNBRUSHPT"); break; // 0x0000005E data/wp2latex-3.92/sources.cc/pass1wmf.cc:2003:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTCREATEPEN: strcpy(ObjType,"!EXTCREATEPEN"); break; // 0x0000005F data/wp2latex-3.92/sources.cc/pass1wmf.cc:2004:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYTEXTOUTA: strcpy(ObjType,"!POLYTEXTOUTA"); break; // 0x00000060 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2005:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_POLYTEXTOUTW: strcpy(ObjType,"!POLYTEXTOUTW"); break; // 0x00000061 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2006:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETICMMODE: strcpy(ObjType,"!SETICMMODE"); break; // 0x00000062 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2007:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATECOLORSPACE: strcpy(ObjType,"!CREATECOLORSPACE"); break; // 0x00000063 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2008:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETCOLORSPACE: strcpy(ObjType,"!SETCOLORSPACE"); break; // 0x00000064 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2009:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_DELETECOLORSPACE: strcpy(ObjType,"!DELETECOLORSPACE"); break; // 0x00000065 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2010:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_GLSRECORD: strcpy(ObjType,"!GLSRECORD"); break; // 0x00000066 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2011:34: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_GLSBOUNDEDRECORD: strcpy(ObjType,"!GLSBOUNDEDRECORD"); break; // 0x00000067 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2012:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_PIXELFORMAT: strcpy(ObjType,"!PIXELFORMAT"); break; // 0x00000068 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2013:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_DRAWESCAPE: strcpy(ObjType,"!DRAWESCAPE"); break; // 0x00000069 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2014:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_EXTESCAPE: strcpy(ObjType,"!EXTESCAPE"); break; // 0x0000006A data/wp2latex-3.92/sources.cc/pass1wmf.cc:2015:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SMALLTEXTOUT: strcpy(ObjType,"!SMALLTEXTOUT"); break; // 0x0000006C data/wp2latex-3.92/sources.cc/pass1wmf.cc:2016:33: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_FORCEUFIMAPPING: strcpy(ObjType,"!FORCEUFIMAPPING"); break; // 0x0000006D data/wp2latex-3.92/sources.cc/pass1wmf.cc:2017:29: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_NAMEDESCAPE: strcpy(ObjType,"!NAMEDESCAPE"); break; // 0x0000006E data/wp2latex-3.92/sources.cc/pass1wmf.cc:2018:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_COLORCORRECTPALETTE: strcpy(ObjType,"!COLORCORRECTPALETTE"); break; // 0x0000006F data/wp2latex-3.92/sources.cc/pass1wmf.cc:2019:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETICMPROFILEA: strcpy(ObjType,"!SETICMPROFILEA"); break; // 0x00000070 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2020:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETICMPROFILEW: strcpy(ObjType,"!SETICMPROFILEW"); break; // 0x00000071 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2021:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_ALPHABLEND: strcpy(ObjType,"!ALPHABLEND"); break; // 0x00000072 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2022:27: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETLAYOUT: strcpy(ObjType,"!SETLAYOUT"); break; // 0x00000073 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2023:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_TRANSPARENTBLT: strcpy(ObjType,"!TRANSPARENTBLT"); break; // 0x00000074 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2024:30: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_GRADIENTFILL: strcpy(ObjType,"!GRADIENTFILL"); break; // 0x00000076 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2025:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETLINKEDUFIS: strcpy(ObjType,"!SETLINKEDUFIS"); break; // 0x00000077 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2026:38: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_SETTEXTJUSTIFICATION: strcpy(ObjType,"!SETTEXTJUSTIFICATION"); break; // 0x00000078 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2027:37: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_COLORMATCHTOTARGETW: strcpy(ObjType,"!COLORMATCHTOTARGETW"); break; // 0x00000079 data/wp2latex-3.92/sources.cc/pass1wmf.cc:2028:35: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. case EMR_CREATECOLORSPACEW: strcpy(ObjType,"!CREATECOLORSPACEW"); break; // 0x0000007A data/wp2latex-3.92/sources.cc/pass1wmf.cc:2029:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. default: sprintf(ObjType,"!Unknown#%X", (unsigned)EmfRec.Type); data/wp2latex-3.92/sources.cc/pass1xml.cc:274:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ObjType, "Comment"); data/wp2latex-3.92/sources.cc/pass2.cc:39:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char UTF8Head[3] = {0xEF, 0xBB, 0xBF}; data/wp2latex-3.92/sources.cc/word/wrd_type.h:1084:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stylename[100]; data/wp2latex-3.92/sources.cc/word/wvparser.c:1226:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (SHD)); data/wp2latex-3.92/sources.cc/word/wvparser.c:1237:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (TAP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:1445:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (DTTM)); data/wp2latex-3.92/sources.cc/word/wvparser.c:1521:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (TBD)); data/wp2latex-3.92/sources.cc/word/wvparser.c:2082:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (item->grpprl, &(page[*pos]), item->cbGrpprl); data/wp2latex-3.92/sources.cc/word/wvparser.c:5107:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (item->grpprl, &(page[*pos]), (item->cb) - 2); data/wp2latex-3.92/sources.cc/word/wvparser.c:5123:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (PAP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:6427:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fkp, &wvPAPX_FKP_previous, sizeof (PAPX_FKP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:6468:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&wvPAPX_FKP_previous, fkp, sizeof (PAPX_FKP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:6514:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fkp, &wvCHPX_FKP_previous, sizeof (CHPX_FKP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:6552:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&wvCHPX_FKP_previous, fkp, sizeof (CHPX_FKP)); data/wp2latex-3.92/sources.cc/word/wvparser.c:6647:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof(BTE)); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:362:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (F=fopen(filename,"r"))==NULL ) return; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:468:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[2]; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:614:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[6]; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:835:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char PngSignature[8] = {0x89,'P','N','G',0x0D, 0x0A, 0x1A, 0x0A}; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:836:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(PngSignature)]; data/wp2latex-3.92/sources.cc/wp2latex.cc:590:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[20]; data/wp2latex-3.92/sources.cc/wp2latex.cc:599:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%4.3f",1234.567); data/wp2latex-3.92/sources.cc/wp2latex.cc:604:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str,"%4.3f",1234.567); data/wp2latex-3.92/sources.cc/wp2latex.cc:685:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((wpd = fopen(wpd_filename, "rb")) == NULL) data/wp2latex-3.92/sources.cc/wp2latex.cc:808:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((strip=fopen(strip_filename, "r")) == NULL) data/wp2latex-3.92/sources.cc/wp2latex.cc:810:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((table=fopen(table_filename, "r+b")) == NULL) data/wp2latex-3.92/sources.cc/wp2latex.h:124:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stack[MaxAttributes+1]; data/wp2latex-3.92/sources.cc/wp2latex.h:238:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ObjType[48]; data/wp2latex-3.92/sources.cc/wp2latex.h:457:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char LangShort[2]; ///< Language abbreviation data/wp2latex-3.92/sources.cc/wp2lfuti.cc:51:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp = fopen(name, "r")) != NULL) data/wp2latex-3.92/sources.cc/wp2lfuti.cc:59:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp=fopen(name, type)) == NULL ) data/wp2latex-3.92/sources.cc/wp2lfuti.cc:93:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buff[32]; data/wp2latex-3.92/sources.cc/wp2lfuti.cc:96:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen(Dest,"rb"); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:103:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((in=fopen(Src,"rb"))==NULL) data/wp2latex-3.92/sources.cc/wp2lfuti.cc:105:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((out=fopen(Dest,"wb"))==NULL) data/wp2latex-3.92/sources.cc/wp2lfuti.cc:130:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buff[32]; data/wp2latex-3.92/sources.cc/wp2lfuti.cc:133:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen(Dest,"rb"); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:142:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(Dest==NULL || (out=fopen(Dest,"wb"))==NULL) data/wp2latex-3.92/sources.cc/wp2lfuti.cc:167:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buff[32]; data/wp2latex-3.92/instaler/menucfg.cc:19:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/wp2latex-3.92/instaler/menucfg.cc:82:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i=toupper(getc(stdin)); data/wp2latex-3.92/instaler/menucfg.cc:86:2: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(stdin); data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:23:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else SLen1=strlen(str1); data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:25:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else SLen2=strlen(str2)+0; data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:55:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str+=strlen(str); data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:79:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str+=strlen(str); data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:113:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s+=strlen(s); data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:158:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len=strlen(s)+1; data/wp2latex-3.92/sources.cc/atoms/dbllist.cc:159:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len+=strlen(s+len) + 1; data/wp2latex-3.92/sources.cc/atoms/include/std_str.h:67:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define StrLen strlen data/wp2latex-3.92/sources.cc/atoms/include/stringa.h:182:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). friend int strlen(const string &s) {return(s.size);} data/wp2latex-3.92/sources.cc/atoms/std_str.cc:105:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return(strlen(str)); data/wp2latex-3.92/sources.cc/atoms/strings.cc:108:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((size=strlen(str))==0) goto FastExit; data/wp2latex-3.92/sources.cc/atoms/strings.cc:176:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ch,str,i); data/wp2latex-3.92/sources.cc/atoms/strings.cc:177:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size=strlen(ch); data/wp2latex-3.92/sources.cc/atoms/strings.cc:398:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len=strlen(str); //NULL is fixed above data/wp2latex-3.92/sources.cc/atoms/strings.cc:418:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len=strlen(str); data/wp2latex-3.92/sources.cc/atoms/strings.cc:480:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned StrSize=strlen(str); data/wp2latex-3.92/sources.cc/atoms/strings.cc:778:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). substrlen=strlen(substring); data/wp2latex-3.92/sources.cc/atoms/utf8.c:36:4: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). d=fgetc(F); data/wp2latex-3.92/sources.cc/cole/new_cole.c:179:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). test_exitf ((c = getc (o.input)) != EOF, 5, ends(&o)); data/wp2latex-3.92/sources.cc/cp_lib/cplib.cc:106:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/wp2latex-3.92/sources.cc/formulas.cc:366:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len=strlen(EquStr); data/wp2latex-3.92/sources.cc/formulas.cc:433:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(EquStr); data/wp2latex-3.92/sources.cc/formulas.cc:481:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). symlen = strlen(symbol); data/wp2latex-3.92/sources.cc/formulas.cc:561:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str2 = copy(str2,p+strlen(symbol),length(str2)-p-strlen(symbol)); data/wp2latex-3.92/sources.cc/formulas.cc:561:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str2 = copy(str2,p+strlen(symbol),length(str2)-p-strlen(symbol)); data/wp2latex-3.92/sources.cc/images.cc:171:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c1 = getc(PostScript); data/wp2latex-3.92/sources.cc/images.cc:172:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c2 = getc(PostScript); data/wp2latex-3.92/sources.cc/images.cc:222:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FnameLen = strlen(Filename); data/wp2latex-3.92/sources.cc/images.cc:343:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq5->by=fgetc(cq5->wpd); data/wp2latex-3.92/sources.cc/images.cc:391:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TextColorIdx = fgetc(cq5->wpd); data/wp2latex-3.92/sources.cc/images.cc:471:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq6->by = fgetc(cq6->wpd); data/wp2latex-3.92/sources.cc/images.cc:476:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq6->subby = fgetc(cq6->wpd); data/wp2latex-3.92/sources.cc/images.cc:508:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NewColor.Red=fgetc(cq6->wpd); data/wp2latex-3.92/sources.cc/images.cc:509:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NewColor.Green=fgetc(cq6->wpd); data/wp2latex-3.92/sources.cc/images.cc:510:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NewColor.Blue=fgetc(cq6->wpd); data/wp2latex-3.92/sources.cc/images.cc:834:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*Palette)->R(i,fgetc(cq->wpd)); data/wp2latex-3.92/sources.cc/images.cc:835:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*Palette)->G(i,fgetc(cq->wpd)); data/wp2latex-3.92/sources.cc/images.cc:836:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*Palette)->B(i,fgetc(cq->wpd)); data/wp2latex-3.92/sources.cc/images.cc:837:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(cq->wpd);//Opacity? data/wp2latex-3.92/sources.cc/images.cc:1177:26: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Red=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1178:28: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Green=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1179:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Blue=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1191:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PenStyle=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1219:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GradientType = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1226:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Red = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1227:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Green = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1228:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Blue = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1229:26: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillTransparency = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1250:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GradientType = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1273:33: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Red = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1274:35: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Green = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1275:34: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Blue = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1419:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec.RecType=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1430:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillPattern=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1431:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BYTE index=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1449:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1451:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). LineColor = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1517:29: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). WPG.Ellipse.style = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1565:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TextColor = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1686:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1750:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1764:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Class = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1765:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Type = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1850:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Class = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1851:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Type = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/images.cc:1987:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Type = fgetc(F); data/wp2latex-3.92/sources.cc/images.cc:1996:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Type = fgetc(F); data/wp2latex-3.92/sources.cc/images/filehnd.cc:61:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). c = FileName+strlen(FileName); data/wp2latex-3.92/sources.cc/images/filehnd.cc:69:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return(FileName+strlen(FileName)); // 0 data/wp2latex-3.92/sources.cc/images/ras_img.cc:147:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:164:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:179:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:207:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:242:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:251:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:272:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1008:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1037:28: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch = fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:1040:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1041:30: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch = fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:1088:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1099:26: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch=fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:1102:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1103:30: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch = fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:1220:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RunCount=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1232:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RunCount=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1257:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RunCount=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1270:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RunValue=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1280:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RunCount=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1293:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j=i=strlen(Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1375:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=toupper(fgetc(F)); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1382:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=toupper(fgetc(F)); data/wp2latex-3.92/sources.cc/images/ras_img.cc:1441:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(F); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2465:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(data); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2469:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buffer,data,len); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2853:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). I=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2893:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CodeSize=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:2993:4: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). I=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3340:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rep = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3345:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = ~fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:3373:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = ~fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4112:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(a)!=2) goto ENDPROC; data/wp2latex-3.92/sources.cc/images/ras_img.cc:4196:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(isspace(ch)) {ch=fgetc(f);continue;} data/wp2latex-3.92/sources.cc/images/ras_img.cc:4732:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j=i=strlen(Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4755:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int tmp = fgetc(f); //startup info data/wp2latex-3.92/sources.cc/images/ras_img.cc:4766:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int tmp = fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4768:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->R(tmp,fgetc(f)); //Red data/wp2latex-3.92/sources.cc/images/ras_img.cc:4769:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->G(tmp,fgetc(f)); //Green data/wp2latex-3.92/sources.cc/images/ras_img.cc:4770:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->B(tmp,fgetc(f)); //Blue data/wp2latex-3.92/sources.cc/images/ras_img.cc:4785:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j=i=strlen(Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4877:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i=strlen(Name); data/wp2latex-3.92/sources.cc/images/ras_img.cc:4974:37: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(i=0;i<=w;i++) Palette->R(i,fgetc(f)); //Red data/wp2latex-3.92/sources.cc/images/ras_img.cc:4975:37: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(i=0;i<=w;i++) Palette->G(i,fgetc(f)); //Green data/wp2latex-3.92/sources.cc/images/ras_img.cc:4976:37: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(i=0;i<=w;i++) Palette->B(i,fgetc(f)); //Blue data/wp2latex-3.92/sources.cc/images/ras_img.cc:5369:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Header.IdentifLen=strlen(ImageID); //??? Start with the lenght of the Image ID string. ?? data/wp2latex-3.92/sources.cc/images/ras_img.cc:5408:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fwrite(ImageID,strlen(ImageID),1,f) != 1) data/wp2latex-3.92/sources.cc/images/ras_img.cc:5501:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5520:26: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch=fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:5567:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5578:26: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(ch==' ') ch=fgetc(f); //read spaces to next number data/wp2latex-3.92/sources.cc/images/ras_img.cc:5654:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5665:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5673:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5677:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5685:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5693:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5701:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5731:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5736:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5742:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5745:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5752:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5759:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:5766:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {ch=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7100:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec.RecType=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7178:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Class=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7179:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Rec2.Type=fgetc(f); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7197:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->R(i,fgetc(f)); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7198:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->G(i,fgetc(f)); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7199:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Palette->B(i,fgetc(f)); data/wp2latex-3.92/sources.cc/images/ras_img.cc:7200:4: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(f); data/wp2latex-3.92/sources.cc/jobs/csext.h:37:39: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. inline void Sleep(long sleep_time) {usleep(1000*(sleep_time));} data/wp2latex-3.92/sources.cc/pass1.cc:782:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). flags=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:786:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PIDs = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1550:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strcmp(CurLang,"??") && strlen(CurLang)>0) data/wp2latex-3.92/sources.cc/pass1.cc:1556:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(LangStr)>2) // Is language correctly recognised, and LeTeX equivalent found? data/wp2latex-3.92/sources.cc/pass1.cc:1647:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IDs=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1835:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 6:Flag=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1836:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(Flag & 0x80) NumID=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1909:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PointSize=50*fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1948:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 6:Flag=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:1949:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(Flag & 0x80) NumID=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:2118:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SupType = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1.cc:2171:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 3:j = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1602.cc:221:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(cq->by==0) cq->by=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1602.cc:232:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1602.cc:248:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1602.cc:315:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_1.cc:257:30: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 0xA0:fputc('~', strip);strcpy(ObjType, " "); data/wp2latex-3.92/sources.cc/pass1_1.cc:335:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:120:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Attribute = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:121:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). State = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:551:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count_xx = fgetc(wpd); //#of subrectangles data/wp2latex-3.92/sources.cc/pass1_3.cc:661:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NoColumns = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:679:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MacChar = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:680:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). WpCharSet = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:681:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Char = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:867:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = fgetc(wpd); //FormatFlags data/wp2latex-3.92/sources.cc/pass1_3.cc:872:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Defs = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1072:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1084:22: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subby = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1098:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1141:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subby = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1169:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Type=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_3.cc:1370:31: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 0xA0: fputc('~', strip);strcpy(ObjType, " "); //Hard space data/wp2latex-3.92/sources.cc/pass1_3.cc:1451:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). WidowOrphan(this,fgetc(wpd)&3); data/wp2latex-3.92/sources.cc/pass1_4.cc:397:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). LineNumFlag = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:414:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = (WORD)fgetc(wpd) * 64; //LastSpacing data/wp2latex-3.92/sources.cc/pass1_4.cc:415:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CurrentSpacing=(WORD)fgetc(wpd) * 64; data/wp2latex-3.92/sources.cc/pass1_4.cc:517:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:521:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:564:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:594:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SectionNumber = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:595:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:602:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:615:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:625:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(by!=0xED) by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_4.cc:702:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). UnderlineType = fgetc(wpd); /* second byte is a bit field. data/wp2latex-3.92/sources.cc/pass1_4.cc:844:30: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 0xA0:fputc('~', strip);strcpy(ObjType, " "); data/wp2latex-3.92/sources.cc/pass1_5.cc:844:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). LineNumFlag = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1354:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1360:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1444:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FontNo=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1454:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1458:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1588:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1600:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_5.cc:1836:30: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 0xA0:fputc('~', strip);strcpy(ObjType, " "); // Hard space data/wp2latex-3.92/sources.cc/pass1_6.cc:120:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Res.Flags = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:121:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Res.PacketType = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:220:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:474:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((PIDs = fgetc(wpd)) == 0) data/wp2latex-3.92/sources.cc/pass1_6.cc:674:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BoxContentType=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:741:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ContentType=fgetc(wpd); // <contentType> data/wp2latex-3.92/sources.cc/pass1_6.cc:760:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = fgetc(wpd); // data data/wp2latex-3.92/sources.cc/pass1_6.cc:919:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:931:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fputc(fgetc(wpd), SrcOLE); /*Copy all OLE contents*/ data/wp2latex-3.92/sources.cc/pass1_6.cc:1145:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ColType=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1147:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NoColumns=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1640:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). flags = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1641:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PIDS = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1646:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). occurance=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1943:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1945:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NumID = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1993:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:1995:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NumID=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2044:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2046:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NumID=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2144:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PIDs = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2146:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). LineNumFlag = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2203:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PIDs=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2329:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2331:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NumID=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2421:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Definition = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2423:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TabsNum = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2438:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TabRepeater = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2488:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2490:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). NumID = getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2493:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Flag = getc(wpd); //table flags data/wp2latex-3.92/sources.cc/pass1_6.cc:2593:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2605:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2650:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Type=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2678:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Type=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:2867:30: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 0x81:fputc('~', strip);strcpy(ObjType, " "); data/wp2latex-3.92/sources.cc/pass1_6.cc:2999:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char flags=getc(wpd); data/wp2latex-3.92/sources.cc/pass1_6.cc:3157:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subby=fgetc(wpd); // charset again data/wp2latex-3.92/sources.cc/pass1abi.cc:705:29: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 200:fputc('~', strip);strcpy(ObjType, " "); data/wp2latex-3.92/sources.cc/pass1acc.cc:264:33: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 200:fputc('~', cq->strip);strcpy(cq->ObjType, " "); data/wp2latex-3.92/sources.cc/pass1dcb.cc:297:33: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case 200:fputc('~', cq->strip);strcpy(cq->ObjType, " "); data/wp2latex-3.92/sources.cc/pass1htm.cc:220:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int in_len = strlen(encoded_string); data/wp2latex-3.92/sources.cc/pass1htm.cc:848:37: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. case TAG_HSPACE:fputc('~', strip); strcpy(ObjType, " "); data/wp2latex-3.92/sources.cc/pass1mtf.cc:545:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). test = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:578:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:611:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nudge.dx=fgetc(f); data/wp2latex-3.92/sources.cc/pass1mtf.cc:612:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nudge.dy=fgetc(f); data/wp2latex-3.92/sources.cc/pass1mtf.cc:636:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(cq->subby & 4) Ruller=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:640:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:655:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->by = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:682:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:685:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Embell=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:746:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:749:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Selector=fgetc(cq->wpd); //[selector] data/wp2latex-3.92/sources.cc/pass1mtf.cc:750:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Variation=fgetc(cq->wpd); //[variation] data/wp2latex-3.92/sources.cc/pass1mtf.cc:753:34: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Variation=(Variation & 0x7F) | (fgetc(cq->wpd)<<8); //??why is bit No 8 masked?? data/wp2latex-3.92/sources.cc/pass1mtf.cc:755:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Options=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:796:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->by = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:799:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). {cq->by = fgetc(cq->wpd);ProcessKeyMTEFSymbol(cq);} data/wp2latex-3.92/sources.cc/pass1mtf.cc:835:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:838:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Halign=fgetc(cq->wpd); //[Halign] data/wp2latex-3.92/sources.cc/pass1mtf.cc:839:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Valign=fgetc(cq->wpd); //[Valign] data/wp2latex-3.92/sources.cc/pass1mtf.cc:842:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Ruler=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:866:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:869:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Valign=fgetc(cq->wpd); //[Valign] data/wp2latex-3.92/sources.cc/pass1mtf.cc:870:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h_just=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:871:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). v_just=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:872:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rows=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:873:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cols=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:945:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->by = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:969:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->by = fgetc(cq->wpd); //get a matrix terminator data/wp2latex-3.92/sources.cc/pass1mtf.cc:987:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Tabs=fgetc(cq->wpd); //[n_stops] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1006:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Tface=fgetc(cq->wpd); //[character style] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1007:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CharStyle=fgetc(cq->wpd); //1 - italic, 2 bold data/wp2latex-3.92/sources.cc/pass1mtf.cc:1010:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1017:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CharStyle = fgetc(cq->wpd); //[character style] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1037:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Typeface=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1040:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CHAR=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1047:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1049:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Typeface=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1051:49: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(cq->subby & MtefO_CHAR_ENC_CHAR_8) CHAR=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1123:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[enc_def_index] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1125:51: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(cq->subby!=0 && !feof(cq->wpd)) cq->subby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1129:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cq->subby=fgetc(cq->wpd); //[options] data/wp2latex-3.92/sources.cc/pass1mtf.cc:1130:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1137:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size=fgetc(cq->wpd); //spacing data/wp2latex-3.92/sources.cc/pass1mtf.cc:1144:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size=fgetc(cq->wpd); //stylearray data/wp2latex-3.92/sources.cc/pass1mtf.cc:1151:51: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(cq->subby!=0 && !feof(cq->wpd)) cq->subby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1183:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). MTEF_Version=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1mtf.cc:1194:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); //application key data/wp2latex-3.92/sources.cc/pass1mtf.cc:1196:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(wpd); //EQ options data/wp2latex-3.92/sources.cc/pass1mtf.cc:1205:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:296:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = toupper(fgetc(FileIn)); data/wp2latex-3.92/sources.cc/pass1rtf.cc:300:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=toupper(fgetc(FileIn)); data/wp2latex-3.92/sources.cc/pass1rtf.cc:365:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(f); data/wp2latex-3.92/sources.cc/pass1rtf.cc:375:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(f); data/wp2latex-3.92/sources.cc/pass1rtf.cc:735:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch = getc(cq->wpd)) == EOF) return(0); //no Keyword data/wp2latex-3.92/sources.cc/pass1rtf.cc:752:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch = getc(cq->wpd)) == EOF) return(0); data/wp2latex-3.92/sources.cc/pass1rtf.cc:755:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:761:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch=getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:777:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:782:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch = getc(cq->wpd)) == EOF) data/wp2latex-3.92/sources.cc/pass1rtf.cc:795:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:815:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch = getc(cq->wpd)) == EOF) return(206); data/wp2latex-3.92/sources.cc/pass1rtf.cc:972:4: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:981:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1389:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else c=fgetc(cq->wpd); //read the closing curly brace data/wp2latex-3.92/sources.cc/pass1rtf.cc:1410:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1413:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1416:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1419:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1458:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1459:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(c=='\\') c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1469:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1473:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cq->ObjType,Type(),sizeof(cq->ObjType)); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1501:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1513:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1rtf.cc:1597:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). case 204:strncpy(cq->ObjType+1,cq->Keyword,sizeof(cq->ObjType)-1); data/wp2latex-3.92/sources.cc/pass1wmf.cc:522:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FontItallic = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:523:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Underline = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:524:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Strikeout = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:526:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Charset = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:558:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OutPrecision = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:559:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ClipPrecision = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:560:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Quality = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:561:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PitchAndFamily = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:616:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Red = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:617:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Green = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:618:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillColor.Blue = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:659:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Red = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:660:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Green = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:661:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.LineColor.Blue = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:758:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Red = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:759:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Green = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:760:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.FillBackground.Blue = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:774:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.TextColor.Red = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:775:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.TextColor.Green = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:776:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PSS.TextColor.Blue = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:987:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ObjType,ObjName,11); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1005:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ObjType,ObjName,16); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1044:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char ch = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wmf.cc:1163:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1wrd.cc:622:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1wrd.cc:630:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1wrd.cc:635:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). by=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1wrd.cc:722:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). default:cq->by=Wby=fgetc(cq->wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:81:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:92:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c=fgetc(wpd)) == EOF) return; data/wp2latex-3.92/sources.cc/pass1xml.cc:104:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:110:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c=fgetc(wpd)) == EOF) return; data/wp2latex-3.92/sources.cc/pass1xml.cc:116:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:120:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:124:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c=fgetc(wpd)) == EOF) break; data/wp2latex-3.92/sources.cc/pass1xml.cc:133:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c=fgetc(wpd)) == EOF) break; data/wp2latex-3.92/sources.cc/pass1xml.cc:151:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c=fgetc(wpd)) == EOF) data/wp2latex-3.92/sources.cc/pass1xml.cc:160:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(wpd); data/wp2latex-3.92/sources.cc/pass1xml.cc:174:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(wpd); data/wp2latex-3.92/sources.cc/pass2.cc:764:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((j>(int)strlen(Helps))&&(Lines[cur].line_term!='s')&&(Lines[cur].line_term!='p')) data/wp2latex-3.92/sources.cc/pass2.cc:811:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). optlen = strlen(opt); data/wp2latex-3.92/sources.cc/pass2.cc:850:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(aline); data/wp2latex-3.92/sources.cc/pass2.cc:895:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j = strlen(Generic); data/wp2latex-3.92/sources.cc/pass2.cc:1386:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aLinePtr+=strlen("\\penalty-10001"); data/wp2latex-3.92/sources.cc/pass2.cc:1470:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(StrNCmp(NextLine->Lstring(), CHelpS, strlen(CHelpS))) data/wp2latex-3.92/sources.cc/pass2.cc:1491:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). NextLine->Lstring = copy(NextLine->Lstring,strlen(CHelpS),length(NextLine->Lstring)-strlen(CHelpS)); data/wp2latex-3.92/sources.cc/pass2.cc:1491:89: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). NextLine->Lstring = copy(NextLine->Lstring,strlen(CHelpS),length(NextLine->Lstring)-strlen(CHelpS)); data/wp2latex-3.92/sources.cc/pass2.cc:1614:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(i=0; i<strlen(HelpS); i++) data/wp2latex-3.92/sources.cc/pass2.cc:1724:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). OptimSectionStr(sec_str + strlen(SectionStr[i])); data/wp2latex-3.92/sources.cc/word/wvparser.c:97:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return(fgetc(in)); data/wp2latex-3.92/sources.cc/word/wvparser.c:348:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->envr = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:349:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). temp8 = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:572:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->envr = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:573:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). temp8 = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:2701:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). grpprl[i] = fgetc(data); data/wp2latex-3.92/sources.cc/word/wvparser.c:5326:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). temp8 = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:5334:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->fn = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:5469:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). clxt = fgetc (fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:5485:47: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). clx->grpprl[clx->grpprl_count - 1][i] = fgetc (fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:5760:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->grpprl[i] = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:5982:4: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6027:3: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6040:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6052:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6066:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->xstzName[i] = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6072:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->xstzName[i] = ( char ) fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6073:3: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6126:46: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->grupxf[i].upx.chpx.grpprl[j] = fgetc(fd); data/wp2latex-3.92/sources.cc/word/wvparser.c:6141:46: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). item->grupxf[i].upx.papx.grpprl[j] = fgetc(fd); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:429:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (chr=fgetc(text)) == EOF) goto NoAccent; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:501:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (chr=fgetc(text)) == EOF) goto NoHTML; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:726:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (chr=fgetc(text)) == EOF) goto NoXML; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:783:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). default:if(Status>=100 && Status<strlen(XML)+100) data/wp2latex-3.92/sources.cc/wp2l_lib.cc:790:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(Status>=150 && Status<strlen(DocType)+150) data/wp2latex-3.92/sources.cc/wp2l_lib.cc:861:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Magic2=fgetc(stream); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:862:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Check3=fgetc(stream); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1142:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BYTE c = fgetc(wpd); CharNo++; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1152:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). w=fgetc(wpd); data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1162:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(fgetc(wpd)!=c) Flag=1; data/wp2latex-3.92/sources.cc/wp2l_lib.cc:1164:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). w=fgetc(wpd); data/wp2latex-3.92/sources.cc/wp2latex.cc:157:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=fgetc(stdin); data/wp2latex-3.92/sources.cc/wp2latex.cc:291:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/wp2latex-3.92/sources.cc/wp2latex.cc:298:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 'y':getchar();return('Y'); data/wp2latex-3.92/sources.cc/wp2latex.cc:301:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 'N':getchar();return('N'); data/wp2latex-3.92/sources.cc/wp2latex.cc:303:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 'i':getchar(); data/wp2latex-3.92/sources.cc/wp2latex.cc:582:13: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(toupper(getchar())!='Y') abort(); data/wp2latex-3.92/sources.cc/wp2latex.cc:583:2: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); //Get rid of buffered Enter key. data/wp2latex-3.92/sources.cc/wp2lfuti.cc:191:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). d=fgetc(F); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:226:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:274:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i=strlen(FullFilename); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:335:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LastPos=strlen(FullName); data/wp2latex-3.92/sources.cc/wp2lfuti.cc:358:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). NameStep = PathName+strlen(PathName); ANALYSIS SUMMARY: Hits = 1489 Lines analyzed = 68053 in approximately 1.67 seconds (40738 lines/second) Physical Source Lines of Code (SLOC) = 53279 Hits@level = [0] 1547 [1] 411 [2] 937 [3] 28 [4] 113 [5] 0 Hits@level+ = [0+] 3036 [1+] 1489 [2+] 1078 [3+] 141 [4+] 113 [5+] 0 Hits/KSLOC@level+ = [0+] 56.9831 [1+] 27.9472 [2+] 20.2331 [3+] 2.64645 [4+] 2.12091 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.