2025-05-05 05:02 ftp://ftp.de.debian.org/debian/pool/main/j/jhead/jhead_3.08.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 94 94 elapsed-time: 3.4 3.4 head-timing-info: old-timing-info: head results: jhead-3.08/gpsinfo.c:197:37: style: Condition 'ZeroSkipped' is always false [knownConditionTrueFalse] jhead-3.08/gpsinfo.c:195:47: note: Assignment 'ZeroSkipped=0', assigned value is 0 jhead-3.08/gpsinfo.c:197:37: note: Condition 'ZeroSkipped' is always false jhead-3.08/gpsinfo.c:56:37: style:inconclusive: Function 'ProcessGpsInfo' argument 1 names different: declaration 'ValuePtr' definition 'DirStart'. [funcArgNamesDifferent] jhead-3.08/jhead.h:202:37: note: Function 'ProcessGpsInfo' argument 1 names different: declaration 'ValuePtr' definition 'DirStart'. jhead-3.08/gpsinfo.c:56:37: note: Function 'ProcessGpsInfo' argument 1 names different: declaration 'ValuePtr' definition 'DirStart'. jhead-3.08/gpsinfo.c:199:49: style: Variable 'ZeroSkipped' is assigned a value that is never used. [unreadVariable] jhead-3.08/gpsinfo.c:204:49: style: Variable 'ZeroSkipped' is assigned a value that is never used. [unreadVariable] jhead-3.08/iptc.c:119:19: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] jhead-3.08/iptc.c:113:18: note: outer condition: pos+5maxpos jhead-3.08/iptc.c:52:32: style:inconclusive: Function 'show_IPTC' argument 1 names different: declaration 'CharBuf' definition 'Data'. [funcArgNamesDifferent] jhead-3.08/jhead.h:206:33: note: Function 'show_IPTC' argument 1 names different: declaration 'CharBuf' definition 'Data'. jhead-3.08/iptc.c:52:32: note: Function 'show_IPTC' argument 1 names different: declaration 'CharBuf' definition 'Data'. jhead-3.08/iptc.c:52:51: style:inconclusive: Function 'show_IPTC' argument 2 names different: declaration 'length' definition 'itemlen'. [funcArgNamesDifferent] jhead-3.08/jhead.h:206:55: note: Function 'show_IPTC' argument 2 names different: declaration 'length' definition 'itemlen'. jhead-3.08/iptc.c:52:51: note: Function 'show_IPTC' argument 2 names different: declaration 'length' definition 'itemlen'. jhead-3.08/iptc.c:59:21: style: Variable 'maxpos' can be declared as pointer to const [constVariablePointer] jhead-3.08/iptc.c:191:21: style: Variable 'Data' can be declared as pointer to const [constVariablePointer] jhead-3.08/jpgfile.c:145:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] jhead-3.08/jpgfile.c:379:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jpgfile.c:413:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jpgfile.c:459:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jpgfile.c:299:33: style: Condition 'ShowTags' is always true [knownConditionTrueFalse] jhead-3.08/jpgfile.c:179:16: warning: If memory allocation fails, then there is a possible null pointer dereference: Data [nullPointerOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:179:16: note: Null pointer dereference jhead-3.08/jpgfile.c:183:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Data [nullPointerOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:183:9: note: Null pointer dereference jhead-3.08/jpgfile.c:184:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Data [nullPointerOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:184:9: note: Null pointer dereference jhead-3.08/jpgfile.c:210:33: warning: If memory allocation fails, then there is a possible null pointer dereference: Data [nullPointerOutOfMemory] jhead-3.08/jpgfile.c:205:43: note: Assuming allocation function fails jhead-3.08/jpgfile.c:205:28: note: Assignment 'Data=(unsigned char*)malloc(size)', assigned value is 0 jhead-3.08/jpgfile.c:210:33: note: Null pointer dereference jhead-3.08/jpgfile.c:585:16: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:585:16: note: Null pointer dereference jhead-3.08/jpgfile.c:586:16: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:586:16: note: Null pointer dereference jhead-3.08/jpgfile.c:633:20: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:633:20: note: Null pointer dereference jhead-3.08/jpgfile.c:634:48: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:634:48: note: Null pointer dereference jhead-3.08/jpgfile.c:635:55: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:635:55: note: Null pointer dereference jhead-3.08/jpgfile.c:639:51: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:639:51: note: Null pointer dereference jhead-3.08/jpgfile.c:641:12: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] jhead-3.08/jpgfile.c:579:20: note: Assuming allocation function fails jhead-3.08/jpgfile.c:579:20: note: Assignment 'outfile=fopen(FileName,"wb")', assigned value is 0 jhead-3.08/jpgfile.c:641:12: note: Null pointer dereference jhead-3.08/jpgfile.c:186:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:186:25: note: Null pointer addition jhead-3.08/jpgfile.c:735:70: style:inconclusive: Function 'CreateSection' argument 3 names different: declaration 'size' definition 'Size'. [funcArgNamesDifferent] jhead-3.08/jhead.h:230:70: note: Function 'CreateSection' argument 3 names different: declaration 'size' definition 'Size'. jhead-3.08/jpgfile.c:735:70: note: Function 'CreateSection' argument 3 names different: declaration 'size' definition 'Size'. jhead-3.08/jpgfile.c:408:26: style: Parameter 'ThumbFileName' can be declared as pointer to const [constParameterPointer] jhead-3.08/jpgfile.c:426:17: style: Variable 'ThumbnailPointer' can be declared as pointer to const [constVariablePointer] jhead-3.08/jpgfile.c:427:21: style: Variable 'ExifSection' can be declared as pointer to const [constVariablePointer] jhead-3.08/jhead.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jhead.c:130:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jhead.c:148:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jhead.c:428:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] jhead-3.08/jhead.c:1067:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jhead.c:1809:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/jpgqguess.c:84:10: style: Variable 'reftable' can be declared as pointer to const [constVariablePointer] jhead-3.08/exif.c:545:34: style: Condition '(unsigned int)Components>0x10000' is always false [knownConditionTrueFalse] jhead-3.08/exif.c:533:24: note: Assuming that condition 'Components>0x10000' is not redundant jhead-3.08/exif.c:539:24: note: Assuming condition is false jhead-3.08/exif.c:545:34: note: Condition '(unsigned int)Components>0x10000' is always false jhead-3.08/exif.c:383:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:383:17: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:512:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:512:13: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:987:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:1015:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/exif.c:1328:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/exif.c:1344:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/exif.c:1344:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/exif.c:1598:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/exif.c:1598:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/exif.c:1226:16: warning: If memory allocation fails, then there is a possible null pointer dereference: NewBuf [nullPointerOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1226:16: note: Null pointer dereference jhead-3.08/exif.c:1024:31: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:31: note: Null pointer addition jhead-3.08/exif.c:1030:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:19: note: Assuming condition is false jhead-3.08/exif.c:1030:27: note: Null pointer addition jhead-3.08/exif.c:396:26: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] jhead-3.08/exif.c:460:26: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] jhead-3.08/exif.c:874:17: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jhead-3.08/exif.c:888:17: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] jhead-3.08/exif.c:1008:35: style:inconclusive: Function 'process_EXIF' argument 1 names different: declaration 'CharBuf' definition 'ExifSection'. [funcArgNamesDifferent] jhead-3.08/jhead.h:166:35: note: Function 'process_EXIF' argument 1 names different: declaration 'CharBuf' definition 'ExifSection'. jhead-3.08/exif.c:1008:35: note: Function 'process_EXIF' argument 1 names different: declaration 'CharBuf' definition 'ExifSection'. jhead-3.08/exif.c:1283:41: style: Parameter 'ExifTime' can be declared as pointer to const [constParameterPointer] jhead-3.08/makernote.c:62:34: style: Condition '(unsigned int)Components>0x10000' is always false [knownConditionTrueFalse] jhead-3.08/makernote.c:50:24: note: Assuming that condition 'Components>0x10000' is not redundant jhead-3.08/makernote.c:56:24: note: Assuming condition is false jhead-3.08/makernote.c:62:34: note: Condition '(unsigned int)Components>0x10000' is always false jhead-3.08/makernote.c:105:33: style: Condition 'ZeroSkipped' is always false [knownConditionTrueFalse] jhead-3.08/makernote.c:103:43: note: Assignment 'ZeroSkipped=0', assigned value is 0 jhead-3.08/makernote.c:105:33: note: Condition 'ZeroSkipped' is always false jhead-3.08/makernote.c:31:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/makernote.c:31:13: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jhead-3.08/makernote.c:80:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/makernote.c:80:17: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/makernote.c:182:39: style:inconclusive: Function 'ProcessMakerNote' argument 1 names different: declaration 'DirStart' definition 'ValuePtr'. [funcArgNamesDifferent] jhead-3.08/jhead.h:198:46: note: Function 'ProcessMakerNote' argument 1 names different: declaration 'DirStart' definition 'ValuePtr'. jhead-3.08/makernote.c:182:39: note: Function 'ProcessMakerNote' argument 1 names different: declaration 'DirStart' definition 'ValuePtr'. jhead-3.08/makernote.c:23:25: style: Variable 'DirEnd' can be declared as pointer to const [constVariablePointer] jhead-3.08/makernote.c:165:50: style: Parameter 'ValuePtr' can be declared as pointer to const [constParameterPointer] jhead-3.08/makernote.c:107:45: style: Variable 'ZeroSkipped' is assigned a value that is never used. [unreadVariable] jhead-3.08/makernote.c:112:45: style: Variable 'ZeroSkipped' is assigned a value that is never used. [unreadVariable] jhead-3.08/paths.c:55:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jhead-3.08/myglob.c:52:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] jhead-3.08/myglob.c:77:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_PATH [valueFlowBailoutIncompleteVar] jhead-3.08/myglob.c:178:17: error: Common realloc mistake: 'FileList' nulled but not freed upon failure [memleakOnRealloc] jhead-3.08/jhead.c:393:5: warning: Return value of function mktemp() is not used. [ignoredReturnValue] jhead-3.08/jhead.c:393:5: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] jhead-3.08/jhead.c:454:17: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] jhead-3.08/jhead.c:621:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] jhead-3.08/jhead.c:840:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] jhead-3.08/jhead.c:1186:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] jhead-3.08/jhead.c:1254:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] jhead-3.08/jhead.c:1277:17: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] jhead-3.08/jhead.c:315:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] jhead-3.08/jhead.c:1059:13: warning: If memory allocation fails, then there is a possible null pointer dereference: DummyData [nullPointerOutOfMemory] jhead-3.08/jhead.c:1058:41: note: Assuming allocation function fails jhead-3.08/jhead.c:1058:25: note: Assignment 'DummyData=(unsigned char*)malloc(3)', assigned value is 0 jhead-3.08/jhead.c:1059:13: note: Null pointer dereference jhead-3.08/jhead.c:1060:13: warning: If memory allocation fails, then there is a possible null pointer dereference: DummyData [nullPointerOutOfMemory] jhead-3.08/jhead.c:1058:41: note: Assuming allocation function fails jhead-3.08/jhead.c:1058:25: note: Assignment 'DummyData=(unsigned char*)malloc(3)', assigned value is 0 jhead-3.08/jhead.c:1060:13: note: Null pointer dereference jhead-3.08/jhead.c:1061:13: warning: If memory allocation fails, then there is a possible null pointer dereference: DummyData [nullPointerOutOfMemory] jhead-3.08/jhead.c:1058:41: note: Assuming allocation function fails jhead-3.08/jhead.c:1058:25: note: Assignment 'DummyData=(unsigned char*)malloc(3)', assigned value is 0 jhead-3.08/jhead.c:1061:13: note: Null pointer dereference jhead-3.08/jhead.c:690:14: style: Local variable 'NewName' shadows outer variable [shadowVariable] jhead-3.08/jhead.c:603:10: note: Shadowed declaration jhead-3.08/jhead.c:690:14: note: Shadow variable jhead-3.08/jhead.c:140:35: style: Parameter 'TempFileName' can be declared as pointer to const [constParameterPointer] jhead-3.08/jhead.c:158:16: style: Variable 'Editor' can be declared as pointer to const [constVariablePointer] jhead-3.08/jhead.c:215:60: style: Parameter 'SrcComment' can be declared as pointer to const [constParameterPointer] jhead-3.08/jhead.c:518:12: style: Variable 'Subst' can be declared as pointer to const [constVariablePointer] jhead-3.08/jhead.c:960:29: style: Variable 'StartRedundant' can be declared as pointer to const [constVariablePointer] jhead-3.08/jhead.c:1133:21: style: Variable 'CommentSec' can be declared as pointer to const [constVariablePointer] jhead-3.08/jhead.c:1464:35: style: Parameter 'DateSpecified' can be declared as pointer to const [constParameterPointer] jhead-3.08/jhead.c:1114:20: error: Uninitialized variable: Comment [legacyUninitvar] diff: 2.17.0 jhead-3.08/exif.c:1024:31: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:31: note: Null pointer addition head jhead-3.08/exif.c:1024:31: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:31: note: Null pointer addition 2.17.0 jhead-3.08/exif.c:1030:27: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:19: note: Assuming condition is false jhead-3.08/exif.c:1030:27: note: Null pointer addition head jhead-3.08/exif.c:1030:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/exif.c:1222:40: note: Assuming allocation function fails jhead-3.08/exif.c:1222:40: note: Assignment 'NewBuf=malloc(DataWriteIndex)', assigned value is 0 jhead-3.08/exif.c:1232:22: note: Calling function 'process_EXIF', 1st argument 'NewBuf' value is 0 jhead-3.08/exif.c:1024:19: note: Assuming condition is false jhead-3.08/exif.c:1030:27: note: Null pointer addition 2.17.0 jhead-3.08/jpgfile.c:186:25: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:186:25: note: Null pointer addition head jhead-3.08/jpgfile.c:186:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jhead-3.08/jpgfile.c:175:31: note: Assuming allocation function fails jhead-3.08/jpgfile.c:175:16: note: Assignment 'Data=(unsigned char*)malloc(itemlen+20)', assigned value is 0 jhead-3.08/jpgfile.c:186:25: note: Null pointer addition DONE