2025-05-05 05:23 ftp://ftp.de.debian.org/debian/pool/main/j/jumpnbump/jumpnbump_1.61.orig.tar.xz 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: 88ef81e (2025-05-02 08:42:38 +0200) count: 115 98 elapsed-time: 1.8 1.6 head-timing-info: old-timing-info: head results: jumpnbump-1.61/filter.c:92:9: style: Variable 'd' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:93:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:94:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:95:9: style: Variable 'h' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:145:9: style: Variable 'b' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:146:9: style: Variable 'd' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:147:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:148:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:149:9: style: Variable 'h' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:200:9: style: Variable 'b' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:201:9: style: Variable 'd' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:202:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/filter.c:203:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/main.c:2676:0: error: #error "rand returns too small values" [preprocessorErrorDirective] jumpnbump-1.61/main.c:2676:2: error: #error "rand returns too small values" [preprocessorErrorDirective] jumpnbump-1.61/menu.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_PL1_LEFT [valueFlowBailoutIncompleteVar] jumpnbump-1.61/menu.c:565:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable error_str [valueFlowBailoutIncompleteVar] jumpnbump-1.61/modify/gobpack.c:362:4: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] jumpnbump-1.61/modify/gobpack.c:229:4: error: Memory leak: filename [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.width [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.height [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.hs_x [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.hs_y [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.data [memleak] jumpnbump-1.61/modify/gobpack.c:410:4: error: Memory leak: gob.orig_data [memleak] jumpnbump-1.61/modify/gobpack.c:101:8: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:101:8: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:103:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:103:29: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:103:45: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:103:45: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:115:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:13: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:115:33: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:33: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:115:58: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:58: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:115:84: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:84: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:117:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:117:29: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:117:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:117:50: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:118:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:118:29: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:118:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:118:50: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:119:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:119:29: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:119:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:119:50: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:120:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:120:29: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:120:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:120:50: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:397:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:392:30: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:392:30: note: Assignment 'gob.orig_data[i]=malloc(gob.width[i]*gob.height[i])', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:393:32: note: Assignment 'gob.data[i]=gob.orig_data[i]', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:394:19: note: Assignment 'dst=gob.data[i]', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:397:7: note: Null pointer dereference jumpnbump-1.61/modify/gobpack.c:42:53: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/modify/gobpack.c:42:97: style: Parameter 'palette' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/modify/gobpack.c:263:20: style: Variable 'src' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/modify/jnbpack.c:111:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jumpnbump-1.61/modify/jnbpack.c:102:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] jumpnbump-1.61/modify/jnbpack.c:57:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/modify/jnbunpack.c:59:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] jumpnbump-1.61/modify/jnbunpack.c:75:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datafile [nullPointerOutOfMemory] jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assuming allocation function fails jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assignment 'datafile=calloc(num_entries,sizeof(struct DirEntry))', assigned value is 0 jumpnbump-1.61/modify/jnbunpack.c:75:20: note: Null pointer dereference jumpnbump-1.61/modify/jnbunpack.c:77:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datafile [nullPointerOutOfMemory] jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assuming allocation function fails jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assignment 'datafile=calloc(num_entries,sizeof(struct DirEntry))', assigned value is 0 jumpnbump-1.61/modify/jnbunpack.c:77:3: note: Null pointer dereference jumpnbump-1.61/modify/jnbunpack.c:85:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: datafile [nullPointerOutOfMemory] jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assuming allocation function fails jumpnbump-1.61/modify/jnbunpack.c:69:22: note: Assignment 'datafile=calloc(num_entries,sizeof(struct DirEntry))', assigned value is 0 jumpnbump-1.61/modify/jnbunpack.c:85:20: note: Null pointer dereference jumpnbump-1.61/network.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOVEMENT_LEFT [valueFlowBailoutIncompleteVar] jumpnbump-1.61/network.c:62:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable player [valueFlowBailoutIncompleteVar] jumpnbump-1.61/network.c:84:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable player [valueFlowBailoutIncompleteVar] jumpnbump-1.61/network.c:102:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable player [valueFlowBailoutIncompleteVar] jumpnbump-1.61/network.c:35:35: style: Parameter 'pkt' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/network.c:93:35: style: Parameter 'pkt' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/network.c:99:9: style: Variable 'c4' is assigned a value that is never used. [unreadVariable] jumpnbump-1.61/network.c:100:9: style: Variable 's1' is assigned a value that is never used. [unreadVariable] jumpnbump-1.61/sdl/gfx.c:97:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:178:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_TIMER [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:243:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_WINDOW_FULLSCREEN_DESKTOP [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:384:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_RGB888 [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:427:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:547:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_images [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:829:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNB_WIDTH [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:894:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNB_WIDTH [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/gfx.c:841:9: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:841:9: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:843:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:843:29: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:843:45: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:843:45: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:855:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:13: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:855:33: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:33: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:855:58: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:58: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:855:84: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:84: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:857:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:857:29: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:857:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:857:50: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:858:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:858:29: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:858:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:858:50: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:859:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:859:29: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:859:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:859:50: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:860:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:860:29: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:860:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:860:50: note: Null pointer dereference jumpnbump-1.61/sdl/gfx.c:67:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/sdl/gfx.c:343:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/sdl/gfx.c:419:45: style: Parameter 'palette' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/gfx.c:535:45: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/gfx.c:835:33: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/gfx.c:878:29: style: Parameter 'gob' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/gfx.c:878:39: style: Parameter 'pal' can be declared as const array [constParameter] jumpnbump-1.61/sdl/input.c:46:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_player_num [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/input.c:107:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mouse_enabled [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/interrpt.c:88:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PRESSED [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/interrpt.c:217:11: style: Condition 'tmp>0' is always true [knownConditionTrueFalse] jumpnbump-1.61/sdl/interrpt.c:211:7: note: Assuming that condition 'i' is not redundant jumpnbump-1.61/sdl/interrpt.c:216:8: note: tmp is assigned '(1000/60)-i-10' here. jumpnbump-1.61/sdl/interrpt.c:217:11: note: Condition 'tmp>0' is always true jumpnbump-1.61/sdl/sound.c:254:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIX_DEFAULT_FORMAT [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:291:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable music_no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:388:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:397:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:406:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:416:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:430:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:453:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:471:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:552:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:565:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:575:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_sound [valueFlowBailoutIncompleteVar] jumpnbump-1.61/sdl/sound.c:521:19: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] jumpnbump-1.61/sdl/sound.c:519:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/sound.c:519:19: note: Assignment 'filename=strdup("/tmp/jumpnbump.mod.XXXXXX")', assigned value is 0 jumpnbump-1.61/sdl/sound.c:521:19: note: Null pointer dereference jumpnbump-1.61/sdl/sound.c:158:18: style: Variable 'leftend' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/sdl/sound.c:395:59: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/sound.c:424:34: style: Parameter 'file_handle' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/sound.c:468:17: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] jumpnbump-1.61/sdl/sound.c:582:34: style: Parameter 'file_handle' can be declared as pointer to const [constParameterPointer] jumpnbump-1.61/sdl/sound.c:582:53: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] diff: head jumpnbump-1.61/main.c:2676:2: error: #error "rand returns too small values" [preprocessorErrorDirective] head jumpnbump-1.61/modify/gobpack.c:103:45: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:103:45: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:115:33: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:33: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:115:58: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:58: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:115:84: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:115:84: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:117:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:117:50: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:118:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:118:50: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:119:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:119:50: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:120:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:100:19: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:100:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:120:50: note: Null pointer dereference head jumpnbump-1.61/modify/gobpack.c:397:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:392:30: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:392:30: note: Assignment 'gob.orig_data[i]=malloc(gob.width[i]*gob.height[i])', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:393:32: note: Assignment 'gob.data[i]=gob.orig_data[i]', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:394:19: note: Assignment 'dst=gob.data[i]', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:397:7: note: Null pointer dereference 2.17.0 jumpnbump-1.61/modify/gobpack.c:397:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] jumpnbump-1.61/modify/gobpack.c:392:30: note: Assuming allocation function fails jumpnbump-1.61/modify/gobpack.c:392:30: note: Assignment 'gob.orig_data[i]=malloc(gob.width[i]*gob.height[i])', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:393:32: note: Assignment 'gob.data[i]=gob.orig_data[i]', assigned value is 0 jumpnbump-1.61/modify/gobpack.c:394:9: note: dst is assigned 'gob.data[i]' here. jumpnbump-1.61/modify/gobpack.c:397:7: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:843:45: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:843:45: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:855:33: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:33: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:855:58: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:58: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:855:84: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:855:84: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:857:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:857:50: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:858:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:858:50: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:859:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:859:50: note: Null pointer dereference head jumpnbump-1.61/sdl/gfx.c:860:50: warning: If memory allocation fails, then there is a possible null pointer dereference: gob_data [nullPointerOutOfMemory] jumpnbump-1.61/sdl/gfx.c:840:19: note: Assuming allocation function fails jumpnbump-1.61/sdl/gfx.c:840:19: note: Assignment 'gob_data=malloc(len)', assigned value is 0 jumpnbump-1.61/sdl/gfx.c:860:50: note: Null pointer dereference DONE