2025-05-05 10:51 ftp://ftp.de.debian.org/debian/pool/main/l/latex2rtf/latex2rtf_2.3.18a.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: c79862b (2025-05-05 10:59:17 +0200) count: 304 303 elapsed-time: 10.9 10.7 head-timing-info: old-timing-info: head results: latex2rtf-2.3.18/acronyms.c:122:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/acronyms.c:124:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/acronyms.c:274:9: error: Common realloc mistake: 'ptr' nulled but not freed upon failure [memleakOnRealloc] latex2rtf-2.3.18/acronyms.c:182:37: style: Parameter 'acDef' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/acronyms.c:217:34: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/acronyms.c:235:35: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/acronyms.c:253:34: style: Parameter 'singular' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/biblio.c:81:29: style:inconclusive: Function 'getBiblio' argument 1 names different: declaration 'cite' definition 'key'. [funcArgNamesDifferent] latex2rtf-2.3.18/biblio.h:18:29: note: Function 'getBiblio' argument 1 names different: declaration 'cite' definition 'key'. latex2rtf-2.3.18/biblio.c:81:29: note: Function 'getBiblio' argument 1 names different: declaration 'cite' definition 'key'. latex2rtf-2.3.18/biblio.c:81:29: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/biblio.c:97:17: style: Variable 'result' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/biblio.c:109:17: style: Variable 'result' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/cfg.c:88:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATHSEP [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/cfg.c:119:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENVSEP [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/cfg.c:268:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TexCommand [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/cfg.c:493:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/cfg.c:359:32: style:inconclusive: Function 'SearchCfgRtf' argument 1 names different: declaration 'theCommand' definition 'theTexCommand'. [funcArgNamesDifferent] latex2rtf-2.3.18/cfg.h:40:42: note: Function 'SearchCfgRtf' argument 1 names different: declaration 'theCommand' definition 'theTexCommand'. latex2rtf-2.3.18/cfg.c:359:32: note: Function 'SearchCfgRtf' argument 1 names different: declaration 'theCommand' definition 'theTexCommand'. latex2rtf-2.3.18/cfg.c:359:51: style:inconclusive: Function 'SearchCfgRtf' argument 2 names different: declaration 'WhichArray' definition 'WhichCfg'. [funcArgNamesDifferent] latex2rtf-2.3.18/cfg.h:40:58: note: Function 'SearchCfgRtf' argument 2 names different: declaration 'WhichArray' definition 'WhichCfg'. latex2rtf-2.3.18/cfg.c:359:51: note: Function 'SearchCfgRtf' argument 2 names different: declaration 'WhichArray' definition 'WhichCfg'. latex2rtf-2.3.18/cfg.c:199:23: style: Local variable 'bufsize' shadows outer variable [shadowVariable] latex2rtf-2.3.18/cfg.c:467:12: note: Shadowed declaration latex2rtf-2.3.18/cfg.c:199:23: note: Shadow variable latex2rtf-2.3.18/cfg.c:146:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/cfg.c:426:25: style: Parameter 'lang' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/cfg.c:450:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/cfg.c:452:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/cfg.c:458:26: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/chars.c:536:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/chars.c:1283:25: error: Array 'num[4]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/chars.c:1277:20: note: Assuming that condition 'i<4' is not redundant latex2rtf-2.3.18/chars.c:1283:25: note: Array index out of bounds latex2rtf-2.3.18/chars.c:1284:12: error: Array 'num[4]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/chars.c:1277:20: note: Assuming that condition 'i<4' is not redundant latex2rtf-2.3.18/chars.c:1284:12: note: Array index out of bounds latex2rtf-2.3.18/commands.c:1051:44: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/convert.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] latex2rtf-2.3.18/convert.c:57:34: style: Condition 'string=='\0'' is always false [knownConditionTrueFalse] latex2rtf-2.3.18/convert.c:136:44: style: Condition 'cThis!='\0'' is always true [knownConditionTrueFalse] latex2rtf-2.3.18/convert.c:435:27: style: Condition '0&&cNext==' '' is always false [knownConditionTrueFalse] latex2rtf-2.3.18/convert.c:782:39: style: Condition '0&&cThis=='\n'' is always false [knownConditionTrueFalse] latex2rtf-2.3.18/convert.c:136:19: style: Redundant initialization for 'cThis'. The initialized value is overwritten before it is read. [redundantInitialization] latex2rtf-2.3.18/convert.c:127:16: note: cThis is initialized latex2rtf-2.3.18/convert.c:136:19: note: cThis is overwritten latex2rtf-2.3.18/convert.c:73:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/convert.c:57:34: warning: Char literal compared with pointer 'string'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] latex2rtf-2.3.18/counters.c:96:30: style:inconclusive: Function 'setCounter' argument 2 names different: declaration 'd' definition 'n'. [funcArgNamesDifferent] latex2rtf-2.3.18/counters.h:1:31: note: Function 'setCounter' argument 2 names different: declaration 'd' definition 'n'. latex2rtf-2.3.18/counters.c:96:30: note: Function 'setCounter' argument 2 names different: declaration 'd' definition 'n'. latex2rtf-2.3.18/counters.c:40:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/counters.c:130:28: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:153:31: warning: Either the condition 'dmacro' is redundant or there is possible null pointer dereference: macro_piece. [nullPointerRedundantCheck] latex2rtf-2.3.18/definitions.c:242:9: note: Assuming that condition 'dmacro' is not redundant latex2rtf-2.3.18/definitions.c:152:17: note: macro_piece is assigned 'dmacro' here. latex2rtf-2.3.18/definitions.c:153:31: note: Null pointer dereference latex2rtf-2.3.18/definitions.c:162:25: warning: Either the condition 'dmacro' is redundant or there is possible null pointer dereference: dmacro. [nullPointerRedundantCheck] latex2rtf-2.3.18/definitions.c:242:9: note: Assuming that condition 'dmacro' is not redundant latex2rtf-2.3.18/definitions.c:162:25: note: Null pointer dereference latex2rtf-2.3.18/definitions.c:164:25: warning: Either the condition 'dmacro' is redundant or there is possible null pointer dereference: dmacro. [nullPointerRedundantCheck] latex2rtf-2.3.18/definitions.c:242:9: note: Assuming that condition 'dmacro' is not redundant latex2rtf-2.3.18/definitions.c:164:25: note: Null pointer dereference latex2rtf-2.3.18/definitions.c:168:25: warning: Either the condition 'dmacro' is redundant or there is possible null pointer dereference: dmacro. [nullPointerRedundantCheck] latex2rtf-2.3.18/definitions.c:242:9: note: Assuming that condition 'dmacro' is not redundant latex2rtf-2.3.18/definitions.c:168:25: note: Null pointer dereference latex2rtf-2.3.18/definitions.c:170:25: warning: Either the condition 'dmacro' is redundant or there is possible null pointer dereference: dmacro. [nullPointerRedundantCheck] latex2rtf-2.3.18/definitions.c:242:9: note: Assuming that condition 'dmacro' is not redundant latex2rtf-2.3.18/definitions.c:170:25: note: Null pointer dereference latex2rtf-2.3.18/definitions.c:569:41: style:inconclusive: Function 'expandEnvironment' argument 2 names different: declaration 'starting' definition 'code'. [funcArgNamesDifferent] latex2rtf-2.3.18/definitions.h:11:43: note: Function 'expandEnvironment' argument 2 names different: declaration 'starting' definition 'code'. latex2rtf-2.3.18/definitions.c:569:41: note: Function 'expandEnvironment' argument 2 names different: declaration 'starting' definition 'code'. latex2rtf-2.3.18/definitions.c:74:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:74:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:253:27: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:278:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:309:38: style: Parameter 'opt_param' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:443:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:491:39: style: Parameter 'opt_param' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:491:56: style: Parameter 'begdef' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:491:70: style: Parameter 'enddef' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:598:35: style: Parameter 'caption' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:598:50: style: Parameter 'numbered_like' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:598:71: style: Parameter 'within' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/definitions.c:648:34: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/direct.c:73:28: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/direct.c:46:10: style: Variable 'n' is assigned a value that is never used. [unreadVariable] latex2rtf-2.3.18/encodings.c:223:41: style: Condition 'cThird!='c'' is always true [knownConditionTrueFalse] latex2rtf-2.3.18/encodings.c:223:31: style: Same expression on both sides of '&&'. [duplicateExpression] latex2rtf-2.3.18/equations.c:315:22: style: The if condition is the same as the previous if condition [duplicateCondition] latex2rtf-2.3.18/equations.c:313:22: note: First condition latex2rtf-2.3.18/equations.c:315:22: note: Second condition latex2rtf-2.3.18/equations.c:91:10: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/equations.c:87:24: note: Assuming allocation function fails latex2rtf-2.3.18/equations.c:87:9: note: Assignment 's=(char*)malloc(1024*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/equations.c:88:9: note: Assignment 't=s', assigned value is 0 latex2rtf-2.3.18/equations.c:91:10: note: Null pointer dereference latex2rtf-2.3.18/equations.c:92:14: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/equations.c:87:24: note: Assuming allocation function fails latex2rtf-2.3.18/equations.c:87:9: note: Assignment 's=(char*)malloc(1024*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/equations.c:88:9: note: Assignment 't=s', assigned value is 0 latex2rtf-2.3.18/equations.c:92:14: note: Null pointer dereference latex2rtf-2.3.18/equations.c:626:21: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/equations.c:623:32: note: Assuming allocation function fails latex2rtf-2.3.18/equations.c:623:17: note: Assignment 's=(char*)malloc(strlen(eq)+sizeof("\\frac{}")+1)', assigned value is 0 latex2rtf-2.3.18/equations.c:624:15: note: t is assigned 's' here. latex2rtf-2.3.18/equations.c:626:21: note: Null pointer dereference latex2rtf-2.3.18/equations.c:1393:10: warning: If memory allocation fails, then there is a possible null pointer dereference: *s [nullPointerOutOfMemory] latex2rtf-2.3.18/equations.c:1392:29: note: Assuming allocation function fails latex2rtf-2.3.18/equations.c:1392:14: note: Assignment '*s=(char*)malloc(3*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/equations.c:1393:10: note: Null pointer dereference latex2rtf-2.3.18/equations.c:1709:24: style:inconclusive: Function 'CmdSlashSlash' argument 1 names different: declaration 'code' definition 'height'. [funcArgNamesDifferent] latex2rtf-2.3.18/equations.h:45:24: note: Function 'CmdSlashSlash' argument 1 names different: declaration 'code' definition 'height'. latex2rtf-2.3.18/equations.c:1709:24: note: Function 'CmdSlashSlash' argument 1 names different: declaration 'code' definition 'height'. latex2rtf-2.3.18/equations.c:258:42: style: Parameter 'pre' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/equations.c:258:53: style: Parameter 'eq' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/equations.c:258:63: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/equations.c:1041:22: style: Variable 'lower_limit' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/funct1.c:1351:6: error: Array 't[100]' accessed at index 100, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/funct1.c:1347:16: note: Assuming that condition 'i<100' is not redundant latex2rtf-2.3.18/funct1.c:1351:6: note: Array index out of bounds latex2rtf-2.3.18/funct1.c:462:11: style: Variable 'chapter_name' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/funct1.c:1441:27: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/funct1.c:1467:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/funct1.c:1650:15: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/funct1.c:2120:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/graphics.c:857:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/graphics.c:1595:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/graphics.c:1670:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/graphics.c:217:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/graphics.c:220:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/graphics.c:1650:13: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] latex2rtf-2.3.18/graphics.c:1654:17: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] latex2rtf-2.3.18/graphics.c:201:5: error: Common realloc mistake: 'ptr' nulled but not freed upon failure [memleakOnRealloc] latex2rtf-2.3.18/utils.h:62:20: warning: Either the condition 'pre' is redundant or there is possible null pointer dereference: s1. [nullPointerRedundantCheck] latex2rtf-2.3.18/graphics.c:1923:9: note: Assuming that condition 'pre' is not redundant latex2rtf-2.3.18/graphics.c:1951:20: note: Calling function 'streq', 1st argument 'pre' value is 0 latex2rtf-2.3.18/utils.h:62:20: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:795:14: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:794:26: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:794:11: note: Assignment 'cmd=(char*)malloc(cmd_len)', assigned value is 0 latex2rtf-2.3.18/graphics.c:795:14: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:796:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:794:26: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:794:11: note: Assignment 'cmd=(char*)malloc(cmd_len)', assigned value is 0 latex2rtf-2.3.18/graphics.c:796:16: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:797:24: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] latex2rtf-2.3.18/graphics.c:796:15: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:796:15: note: Assignment 'fp=popen(cmd,"r")', assigned value is 0 latex2rtf-2.3.18/graphics.c:797:24: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:811:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] latex2rtf-2.3.18/graphics.c:802:15: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:802:15: note: Assignment 'fp=fopen(emf,"wb")', assigned value is 0 latex2rtf-2.3.18/graphics.c:811:12: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1886:13: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1886:13: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1888:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1888:9: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1889:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1889:9: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1890:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1890:9: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1891:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1891:9: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1892:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1892:9: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1895:13: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1895:13: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:1899:23: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] latex2rtf-2.3.18/graphics.c:1882:28: note: Assuming allocation function fails latex2rtf-2.3.18/graphics.c:1882:13: note: Assignment 't=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/graphics.c:1899:23: note: Null pointer dereference latex2rtf-2.3.18/graphics.c:242:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/graphics.c:254:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/graphics.c:398:14: style: Variable 'format_simple' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:403:14: style: Variable 'format_crop' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:409:18: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:412:18: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:419:18: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:422:18: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:428:14: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:433:14: style: Variable 'format_xp' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:507:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/graphics.c:540:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/graphics.c:994:10: style: Variable 'reftag' can be declared as const array [constVariable] latex2rtf-2.3.18/graphics.c:1852:35: style: Parameter 'the_type' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/graphics.c:1907:57: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/graphics.c:1714:61: error: Uninitialized variable: bmoffset [uninitvar] latex2rtf-2.3.18/graphics.c:78:14: style: struct member '_WindowsMetaHeader::FileType' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:79:14: style: struct member '_WindowsMetaHeader::HeaderSize' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:80:14: style: struct member '_WindowsMetaHeader::Version' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:81:14: style: struct member '_WindowsMetaHeader::FileSize' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:82:14: style: struct member '_WindowsMetaHeader::NumOfObjects' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:83:14: style: struct member '_WindowsMetaHeader::MaxRecordSize' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:84:14: style: struct member '_WindowsMetaHeader::NumOfParams' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:88:14: style: struct member '_PlaceableMetaHeader::Key' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:89:14: style: struct member '_PlaceableMetaHeader::Handle' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:90:13: style: struct member '_PlaceableMetaHeader::Left' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:91:13: style: struct member '_PlaceableMetaHeader::Top' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:92:13: style: struct member '_PlaceableMetaHeader::Right' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:93:13: style: struct member '_PlaceableMetaHeader::Bottom' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:94:14: style: struct member '_PlaceableMetaHeader::Inch' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:95:14: style: struct member '_PlaceableMetaHeader::Reserved' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:96:14: style: struct member '_PlaceableMetaHeader::Checksum' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:100:14: style: struct member '_EnhancedMetaHeader::RecordType' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:101:14: style: struct member '_EnhancedMetaHeader::RecordSize' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:102:13: style: struct member '_EnhancedMetaHeader::BoundsLeft' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:103:13: style: struct member '_EnhancedMetaHeader::BoundsTop' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:104:13: style: struct member '_EnhancedMetaHeader::BoundsRight' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:105:13: style: struct member '_EnhancedMetaHeader::BoundsBottom' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:106:13: style: struct member '_EnhancedMetaHeader::FrameLeft' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:107:13: style: struct member '_EnhancedMetaHeader::FrameTop' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:108:13: style: struct member '_EnhancedMetaHeader::FrameRight' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:109:13: style: struct member '_EnhancedMetaHeader::FrameBottom' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:110:14: style: struct member '_EnhancedMetaHeader::Signature' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:111:14: style: struct member '_EnhancedMetaHeader::Version' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:112:14: style: struct member '_EnhancedMetaHeader::Size' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:113:14: style: struct member '_EnhancedMetaHeader::NumOfRecords' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:114:14: style: struct member '_EnhancedMetaHeader::NumOfHandles' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:115:14: style: struct member '_EnhancedMetaHeader::Reserved' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:116:14: style: struct member '_EnhancedMetaHeader::SizeOfDescrip' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:117:14: style: struct member '_EnhancedMetaHeader::OffsOfDescrip' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:118:14: style: struct member '_EnhancedMetaHeader::NumPalEntries' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:119:13: style: struct member '_EnhancedMetaHeader::WidthDevPixels' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:120:13: style: struct member '_EnhancedMetaHeader::HeightDevPixels' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:121:13: style: struct member '_EnhancedMetaHeader::WidthDevMM' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:122:13: style: struct member '_EnhancedMetaHeader::HeightDevMM' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:126:14: style: struct member '_EmrFormat::Signature' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:127:14: style: struct member '_EmrFormat::Version' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:128:14: style: struct member '_EmrFormat::Data' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:129:14: style: struct member '_EmrFormat::OffsetToData' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:133:14: style: struct member '_GdiCommentMultiFormats::Identifier' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:134:14: style: struct member '_GdiCommentMultiFormats::Comment' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:135:13: style: struct member '_GdiCommentMultiFormats::BoundsLeft' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:136:13: style: struct member '_GdiCommentMultiFormats::BoundsRight' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:137:13: style: struct member '_GdiCommentMultiFormats::BoundsTop' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:138:13: style: struct member '_GdiCommentMultiFormats::BoundsBottom' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:139:14: style: struct member '_GdiCommentMultiFormats::NumFormats' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:140:16: style: struct member '_GdiCommentMultiFormats::Data' is never used. [unusedStructMember] latex2rtf-2.3.18/graphics.c:1098:11: style: Unused variable: s [unusedVariable] latex2rtf-2.3.18/ignore.c:188:31: style:inconclusive: Function 'Ignore_Environment' argument 1 names different: declaration 'endstring' definition 'cCommand'. [funcArgNamesDifferent] latex2rtf-2.3.18/ignore.h:2:31: note: Function 'Ignore_Environment' argument 1 names different: declaration 'endstring' definition 'cCommand'. latex2rtf-2.3.18/ignore.c:188:31: note: Function 'Ignore_Environment' argument 1 names different: declaration 'endstring' definition 'cCommand'. latex2rtf-2.3.18/labels.c:71:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/labels.c:92:16: style: Variable 'label' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/labels.c:111:16: style: Variable 'label' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/labels.c:128:16: style: Variable 'label' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/labels.c:145:16: style: Variable 'label' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/lengths.c:46:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/main.c:182:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:513:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:526:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:617:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:753:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:781:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:819:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:908:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATHSEP [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:1025:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/main.c:434:26: style: Condition 'endian_test_char==0xdd' is always true [knownConditionTrueFalse] latex2rtf-2.3.18/main.c:431:32: note: Assignment 'endian_test=(unsigned int)0xaabbccdd', assigned value is 2864434397 latex2rtf-2.3.18/main.c:432:38: note: Assignment 'endian_test_char=*(unsigned char*)&endian_test', assigned value is 221 latex2rtf-2.3.18/main.c:434:26: note: Condition 'endian_test_char==0xdd' is always true latex2rtf-2.3.18/main.c:505:43: style: Condition 'strcmp(sec_head,"\\end{document}")==0' is always true [knownConditionTrueFalse] latex2rtf-2.3.18/main.c:466:46: note: Assuming that condition 'strcmp(sec_head,"\\end{document}")!=0' is not redundant latex2rtf-2.3.18/main.c:505:43: note: Condition 'strcmp(sec_head,"\\end{document}")==0' is always true latex2rtf-2.3.18/main.c:977:6: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] latex2rtf-2.3.18/main.c:976:24: note: Assuming allocation function fails latex2rtf-2.3.18/main.c:976:9: note: Assignment 's=(char*)malloc(strsize)', assigned value is 0 latex2rtf-2.3.18/main.c:977:6: note: Null pointer dereference latex2rtf-2.3.18/main.c:323:33: style: Variable 'g_safety_braces' is reassigned a value before the old one has been used. [redundantAssignment] latex2rtf-2.3.18/main.c:322:33: note: g_safety_braces is assigned latex2rtf-2.3.18/main.c:323:33: note: g_safety_braces is overwritten latex2rtf-2.3.18/main.c:442:10: style: Variable 't' can be declared as const array [constVariable] latex2rtf-2.3.18/main.c:524:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/main.c:605:24: style: Variable 'buff_ptr' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/main.c:856:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/main.c:871:20: style: Variable 'text' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/main.c:908:10: style: Variable 'pathsep_str' can be declared as const array [constVariable] latex2rtf-2.3.18/main.c:984:34: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/mygetopt.c:50:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/mygetopt.c:30:44: style: Parameter 'optstring' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/mygetopt.c:32:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/parser.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/parser.c:439:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/parser.c:321:23: style: Condition 'g_parser_file&&0' is always false [knownConditionTrueFalse] latex2rtf-2.3.18/parser.c:325:9: error: Dereferencing 'g_parser_file' after it is deallocated / released [deallocuse] latex2rtf-2.3.18/parser.c:105:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/preamble.c:419:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:550:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:748:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:749:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:755:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:756:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:788:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:789:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:790:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:791:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] latex2rtf-2.3.18/preamble.c:239:32: style:inconclusive: Function 'setPaperSize' argument 1 names different: declaration 'size' definition 'option'. [funcArgNamesDifferent] latex2rtf-2.3.18/preamble.c:79:32: note: Function 'setPaperSize' argument 1 names different: declaration 'size' definition 'option'. latex2rtf-2.3.18/preamble.c:239:32: note: Function 'setPaperSize' argument 1 names different: declaration 'size' definition 'option'. latex2rtf-2.3.18/preamble.c:777:29: style:inconclusive: Function 'ExecGeomOptions' argument 1 names different: declaration 'option' definition 'key'. [funcArgNamesDifferent] latex2rtf-2.3.18/preamble.c:85:29: note: Function 'ExecGeomOptions' argument 1 names different: declaration 'option' definition 'key'. latex2rtf-2.3.18/preamble.c:777:29: note: Function 'ExecGeomOptions' argument 1 names different: declaration 'option' definition 'key'. latex2rtf-2.3.18/preamble.c:239:32: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/preamble.c:390:32: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/preamble.c:734:42: style: Variable 'comma' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/preamble.c:734:57: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/preparse.c:415:47: style: Condition 'i==e_comment_item' is always false [knownConditionTrueFalse] latex2rtf-2.3.18/preparse.c:415:26: note: Assuming that condition 'i<=e_comment_item' is not redundant latex2rtf-2.3.18/preparse.c:415:47: note: Condition 'i==e_comment_item' is always false latex2rtf-2.3.18/preparse.c:48:13: warning: If memory allocation fails, then there is a possible null pointer dereference: new_section_buffer [nullPointerOutOfMemory] latex2rtf-2.3.18/preparse.c:45:41: note: Assuming allocation function fails latex2rtf-2.3.18/preparse.c:45:26: note: Assignment 'new_section_buffer=(char*)malloc(2*section_buffer_size+1)', assigned value is 0 latex2rtf-2.3.18/preparse.c:48:13: note: Null pointer dereference latex2rtf-2.3.18/preparse.c:165:29: style: Variable 'text' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/preparse.c:165:56: style: Variable 'p' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/rtf.c:11:67: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/styles.c:82:11: style: Variable 'style_end' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/styles.c:147:11: style: Variable 'rtf' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:107:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] latex2rtf-2.3.18/tables.c:984:24: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] latex2rtf-2.3.18/tables.c:981:23: note: outer condition: begins>ends latex2rtf-2.3.18/tables.c:984:24: note: identical inner condition: begins>ends latex2rtf-2.3.18/tables.c:447:42: style: Redundant condition: *s=='&'. '*s!='&' || (*s=='&' && escaped)' is equivalent to '*s!='&' || escaped' [redundantCondition] latex2rtf-2.3.18/tables.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:68:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:69:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:70:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:71:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:71:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:72:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:72:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:73:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:73:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:74:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:74:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:75:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:75:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:76:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:76:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:80:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:80:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:81:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:81:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:82:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:82:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:83:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:83:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:84:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:84:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:85:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:85:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:86:9: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:66:42: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:66:23: note: Assignment 'table=(struct TabularT*)malloc(sizeof(struct TabularT))', assigned value is 0 latex2rtf-2.3.18/tables.c:86:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:132:13: warning: Either the condition 'cols' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] latex2rtf-2.3.18/tables.c:1048:17: note: Assuming that condition 'cols' is not redundant latex2rtf-2.3.18/tables.c:1017:46: note: Calling function 'TabularPreamble', 1st argument 'cols' value is 0 latex2rtf-2.3.18/tables.c:320:46: note: Calling function 'NewTabularFromFormat', 1st argument 'format' value is 0 latex2rtf-2.3.18/tables.c:184:44: note: Calling function 'countTabularColumns', 1st argument 'format' value is 0 latex2rtf-2.3.18/tables.c:129:14: note: Assignment 's=(char*)format', assigned value is 0 latex2rtf-2.3.18/tables.c:132:13: note: Null pointer dereference latex2rtf-2.3.18/tables.c:188:13: warning: Either the condition 'cols' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] latex2rtf-2.3.18/tables.c:1048:17: note: Assuming that condition 'cols' is not redundant latex2rtf-2.3.18/tables.c:1017:46: note: Calling function 'TabularPreamble', 1st argument 'cols' value is 0 latex2rtf-2.3.18/tables.c:320:46: note: Calling function 'NewTabularFromFormat', 1st argument 'format' value is 0 latex2rtf-2.3.18/tables.c:187:9: note: Assignment 's=(char*)format', assigned value is 0 latex2rtf-2.3.18/tables.c:188:13: note: Null pointer dereference latex2rtf-2.3.18/tables.c:416:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dimension [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:415:32: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:415:17: note: Assignment 'dimension=(char*)malloc((dim_chars+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:416:13: note: Null pointer dereference latex2rtf-2.3.18/tables.c:417:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dimension [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:415:32: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:415:17: note: Assignment 'dimension=(char*)malloc((dim_chars+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:417:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:418:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dimension [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:415:32: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:415:17: note: Assignment 'dimension=(char*)malloc((dim_chars+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:418:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:502:16: warning: Either the condition 'cell!=NULL' is redundant or there is possible null pointer dereference: cell. [nullPointerRedundantCheck] latex2rtf-2.3.18/tables.c:770:18: note: Assuming that condition 'cell!=NULL' is not redundant latex2rtf-2.3.18/tables.c:763:32: note: Calling function 'TabularMultiParameters', 1st argument 'cell' value is 0 latex2rtf-2.3.18/tables.c:502:16: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1267:13: warning: If memory allocation fails, then there is a possible null pointer dereference: arow [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:1266:27: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:1266:12: note: Assignment 'arow=(char*)malloc((row_chars+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:1267:13: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1268:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arow [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:1266:27: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:1266:12: note: Assignment 'arow=(char*)malloc((row_chars+1)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:1268:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1715:5: warning: If memory allocation fails, then there is a possible null pointer dereference: align [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:1714:28: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:1714:13: note: Assignment 'align=(char*)malloc((ncols+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:1715:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1716:5: warning: If memory allocation fails, then there is a possible null pointer dereference: align [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:1714:28: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:1714:13: note: Assignment 'align=(char*)malloc((ncols+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:1716:5: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1720:9: warning: If memory allocation fails, then there is a possible null pointer dereference: align [nullPointerOutOfMemory] latex2rtf-2.3.18/tables.c:1714:28: note: Assuming allocation function fails latex2rtf-2.3.18/tables.c:1714:13: note: Assignment 'align=(char*)malloc((ncols+2)*sizeof(char))', assigned value is 0 latex2rtf-2.3.18/tables.c:1720:9: note: Null pointer dereference latex2rtf-2.3.18/tables.c:1554:12: warning: Either the condition 'p' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] latex2rtf-2.3.18/tables.c:1546:9: note: Assuming that condition 'p' is not redundant latex2rtf-2.3.18/tables.c:1554:12: note: Null pointer addition latex2rtf-2.3.18/tables.c:1565:15: warning: Either the condition 'p' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] latex2rtf-2.3.18/tables.c:1559:13: note: Assuming that condition 'p' is not redundant latex2rtf-2.3.18/tables.c:1558:19: note: Assignment to 'p=strstr(ss,"\\cr")' latex2rtf-2.3.18/tables.c:1558:11: note: p is assigned 'strstr(ss,"\\cr")' here. latex2rtf-2.3.18/tables.c:1565:15: note: Null pointer addition latex2rtf-2.3.18/tables.c:340:27: style: Variable 'dim_start' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:530:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:553:15: style: Variable 'x' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:626:11: style: Variable 'cell_start' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:793:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:1165:55: style: Parameter 'align' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/tables.c:1579:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:1682:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:1682:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/tables.c:1764:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/utf8_support.c:64:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/utils.c:598:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] latex2rtf-2.3.18/utils.c:764:63: style: Condition 'buffer[i]!='\0'' is always true [knownConditionTrueFalse] latex2rtf-2.3.18/utils.c:764:26: note: Assuming that condition 'buffer[i]=='%'' is not redundant latex2rtf-2.3.18/utils.c:764:63: note: Condition 'buffer[i]!='\0'' is always true latex2rtf-2.3.18/utils.c:680:29: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] latex2rtf-2.3.18/utils.c:147:27: note: Assuming allocation function fails latex2rtf-2.3.18/utils.c:147:12: note: Assignment 'both=(char*)malloc(siz)', assigned value is 0 latex2rtf-2.3.18/utils.c:153:16: note: Calling function 'my_strlcat', 1st argument 'both' value is 0 latex2rtf-2.3.18/utils.c:674:19: note: Assignment 'd=dst', assigned value is 0 latex2rtf-2.3.18/utils.c:680:29: note: Null pointer dereference latex2rtf-2.3.18/utils.c:116:30: style:inconclusive: Function 'my_strndup' argument 1 names different: declaration 's' definition 'src'. [funcArgNamesDifferent] latex2rtf-2.3.18/utils.h:35:32: note: Function 'my_strndup' argument 1 names different: declaration 's' definition 'src'. latex2rtf-2.3.18/utils.c:116:30: note: Function 'my_strndup' argument 1 names different: declaration 's' definition 'src'. latex2rtf-2.3.18/utils.c:239:37: style:inconclusive: Function 'strdup_nobadchars' argument 1 names different: declaration 's' definition 'text'. [funcArgNamesDifferent] latex2rtf-2.3.18/utils.h:41:39: note: Function 'strdup_nobadchars' argument 1 names different: declaration 's' definition 'text'. latex2rtf-2.3.18/utils.c:239:37: note: Function 'strdup_nobadchars' argument 1 names different: declaration 's' definition 'text'. latex2rtf-2.3.18/utils.c:523:28: style:inconclusive: Function 'keyvalue_pair' argument 1 names different: declaration 't' definition 's'. [funcArgNamesDifferent] latex2rtf-2.3.18/utils.h:47:29: note: Function 'keyvalue_pair' argument 1 names different: declaration 't' definition 's'. latex2rtf-2.3.18/utils.c:523:28: note: Function 'keyvalue_pair' argument 1 names different: declaration 't' definition 's'. latex2rtf-2.3.18/utils.c:92:39: style: Parameter 't' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/utils.c:290:41: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/utils.c:321:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/xrefs.c:273:18: error: Array 'buffer[4096]' accessed at index 4096, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/xrefs.c:265:16: note: Assuming that condition 'i<4096' is not redundant latex2rtf-2.3.18/xrefs.c:273:18: note: Array index out of bounds latex2rtf-2.3.18/xrefs.c:273:37: error: Array 'buffer[4096]' accessed at index 4096, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/xrefs.c:265:5: note: After for loop, i has value 4096 latex2rtf-2.3.18/xrefs.c:273:37: note: Array index out of bounds latex2rtf-2.3.18/xrefs.c:266:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] latex2rtf-2.3.18/xrefs.c:261:29: note: Assuming allocation function fails latex2rtf-2.3.18/xrefs.c:261:14: note: Assignment 'buffer=(char*)malloc(4096)', assigned value is 0 latex2rtf-2.3.18/xrefs.c:266:9: note: Null pointer dereference latex2rtf-2.3.18/xrefs.c:268:13: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] latex2rtf-2.3.18/xrefs.c:261:29: note: Assuming allocation function fails latex2rtf-2.3.18/xrefs.c:261:14: note: Assignment 'buffer=(char*)malloc(4096)', assigned value is 0 latex2rtf-2.3.18/xrefs.c:267:17: note: Assuming condition is false latex2rtf-2.3.18/xrefs.c:268:13: note: Null pointer dereference latex2rtf-2.3.18/xrefs.c:129:41: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:135:37: style: Parameter 'open' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:135:49: style: Parameter 'close' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:142:51: style: Parameter 'ad' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:142:61: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:164:32: style: Parameter 'citation' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:231:28: style: Parameter 'reference' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:700:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:713:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:725:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:753:43: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:753:53: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:753:63: style: Parameter 's3' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:925:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:936:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:1256:40: style: Parameter 'bibElem' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:1529:19: style: Variable 't' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/xrefs.c:1984:24: style: Variable 'v' can be declared as pointer to const [constVariablePointer] latex2rtf-2.3.18/xrefs.c:2067:37: style: Parameter 'pre' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:2067:48: style: Parameter 'post' can be declared as pointer to const [constParameterPointer] latex2rtf-2.3.18/xrefs.c:981:31: style: Variable 'year_repeated' is assigned a value that is never used. [unreadVariable] latex2rtf-2.3.18/xrefs.c:1110:31: style: Variable 'year_repeated' is assigned a value that is never used. [unreadVariable] latex2rtf-2.3.18/utils.h:62:20: warning: Null pointer dereference: s1 [ctunullpointer] latex2rtf-2.3.18/graphics.c:1923:9: note: Assuming that condition 'pre' is not redundant latex2rtf-2.3.18/graphics.c:1951:19: note: Calling function streq, 1st argument is null latex2rtf-2.3.18/utils.h:62:20: note: Dereferencing argument s1 that is null latex2rtf-2.3.18/main.c:975:22: warning: Null pointer dereference: str [ctunullpointer] latex2rtf-2.3.18/definitions.c:245:9: note: Assuming that condition 'buffer' is not redundant latex2rtf-2.3.18/definitions.c:235:22: note: Calling function my_strdup, 1st argument is null latex2rtf-2.3.18/main.c:975:22: note: Dereferencing argument str that is null diff: head latex2rtf-2.3.18/xrefs.c:273:37: error: Array 'buffer[4096]' accessed at index 4096, which is out of bounds. [arrayIndexOutOfBounds] latex2rtf-2.3.18/xrefs.c:265:5: note: After for loop, i has value 4096 latex2rtf-2.3.18/xrefs.c:273:37: note: Array index out of bounds DONE