2026-05-01 08:20 ftp://ftp.de.debian.org/debian/pool/main/c/cdemu-daemon/cdemu-daemon_3.2.7.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: 0fda84e (2026-05-01 02:32:52 +0200) count: 114 114 elapsed-time: 3.2 2.9 head-timing-info: old-timing-info: head results: cdemu-daemon-3.2.7/src/audio.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_AUDIO [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/audio.c:215:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_LITTLE [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/audio.c:328:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cdemu_audio_parent_class [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:45:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDBusErrorEntry [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:75:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:289:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDEMU_DAEMON_INTERFACE_VERSION_MAJOR [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:418:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_TYPE_ERROR [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:455:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:506:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_NAME_OWNER_FLAGS_NONE [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon-dbus.c:82:61: style: Parameter 'info' can be declared as pointer to const. However it seems that 'append_parser_to_builder' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:100:60: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:82:61: note: Parameter 'info' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:82:84: style: Parameter 'builder' can be declared as pointer to const. However it seems that 'append_parser_to_builder' is a callback function, if 'builder' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:100:60: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:82:84: note: Parameter 'builder' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:85:15: style: Variable 'types' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/daemon-dbus.c:106:61: style: Parameter 'info' can be declared as pointer to const. However it seems that 'append_writer_to_builder' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:115:60: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:106:61: note: Parameter 'info' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:106:84: style: Parameter 'builder' can be declared as pointer to const. However it seems that 'append_writer_to_builder' is a callback function, if 'builder' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:115:60: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:106:84: note: Parameter 'builder' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:121:74: style: Parameter 'info' can be declared as pointer to const. However it seems that 'append_filter_stream_to_builder' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:139:73: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:121:74: note: Parameter 'info' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:121:97: style: Parameter 'builder' can be declared as pointer to const. However it seems that 'append_filter_stream_to_builder' is a callback function, if 'builder' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon-dbus.c:139:73: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon-dbus.c:121:97: note: Parameter 'builder' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon-dbus.c:124:15: style: Variable 'types' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/daemon-dbus.c:148:12: style: Variable 'parameters' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/daemon-dbus.c:149:17: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/daemon-dbus.c:255:23: style: Variable 'option_value' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/daemon.c:97:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon.c:246:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDEMU_DAEMON_VERSION [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon.c:270:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cdemu_daemon_parent_class [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon.c:290:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cdemu_daemon_parent_class [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/daemon.c:88:1: error: Memory leak: data [memleak] cdemu-daemon-3.2.7/src/daemon.c:35:72: style: Parameter 'option' can be declared as pointer to const. However it seems that 'device_option_changed_handler' is a callback function, if 'option' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/daemon.c:177:5: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/daemon.c:35:72: note: Parameter 'option' can be declared as pointer to const cdemu-daemon-3.2.7/src/daemon.c:58:18: style: Variable 'self' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:33:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_AUDIO [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:142:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SUBCHANNEL_PW [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:365:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start_lba [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:532:105: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:780:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable code [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:1056:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_MODE1 [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:1296:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_MODE1 [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-commands.c:78:17: style: Condition 'mcsb->sync' is always true [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-commands.c:74:9: note: Assuming that condition 'mcsb_byte' is not redundant cdemu-daemon-3.2.7/src/device-commands.c:78:17: note: Condition 'mcsb->sync' is always true cdemu-daemon-3.2.7/src/device-commands.c:86:17: style: Condition 'mcsb->header' is always true [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-commands.c:74:9: note: Assuming that condition 'mcsb_byte' is not redundant cdemu-daemon-3.2.7/src/device-commands.c:86:17: note: Condition 'mcsb->header' is always true cdemu-daemon-3.2.7/src/device-commands.c:94:17: style: Condition 'mcsb->subheader' is always true [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-commands.c:74:9: note: Assuming that condition 'mcsb_byte' is not redundant cdemu-daemon-3.2.7/src/device-commands.c:94:17: note: Condition 'mcsb->subheader' is always true cdemu-daemon-3.2.7/src/device-commands.c:102:17: style: Condition 'mcsb->data' is always true [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-commands.c:74:9: note: Assuming that condition 'mcsb_byte' is not redundant cdemu-daemon-3.2.7/src/device-commands.c:102:17: note: Condition 'mcsb->data' is always true cdemu-daemon-3.2.7/src/device-commands.c:154:17: warning: Possible null pointer dereference: tmp_buf [nullPointer] cdemu-daemon-3.2.7/src/device-commands.c:150:23: note: Assignment 'tmp_buf=NULL', assigned value is 0 cdemu-daemon-3.2.7/src/device-commands.c:154:17: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-commands.c:2726:15: style: Redundant initialization for 'succeeded'. The initialized value is overwritten before it is read. [redundantInitialization] cdemu-daemon-3.2.7/src/device-commands.c:2704:24: note: succeeded is initialized cdemu-daemon-3.2.7/src/device-commands.c:2726:15: note: succeeded is overwritten cdemu-daemon-3.2.7/src/device-commands.c:75:30: style: Variable 'mcsb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:321:83: style: Parameter 'descriptors' can be declared as pointer to const [constParameterPointer] cdemu-daemon-3.2.7/src/device-commands.c:738:35: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:760:37: style: Variable 'header' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:802:34: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:831:17: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:833:33: style: Variable 'mode_page' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:896:30: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:983:46: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:1008:27: style: Variable 'p_0x01' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:1097:38: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:1174:27: style: Variable 'p_0x01' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:2444:31: style: Variable 'cdb' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-commands.c:2555:27: style: Variable 'p_0x05' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-delay.c:145:5: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] cdemu-daemon-3.2.7/src/device-disc-structures.c:222:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable format_code [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-disc-structures.c:288:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable format_code [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-disc-structures.c:36:16: style: struct member 'DISC_STRUCTURE_ListEntry::reserved1' is never used. [unusedStructMember] cdemu-daemon-3.2.7/src/device-features.c:82:12: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-kernel-io.c:138:5: error: There is an unknown macro here somewhere. Configuration is required. If G_GSIZE_MODIFIER is a macro then please configure it. [unknownMacro] cdemu-daemon-3.2.7/src/device-load.c:114:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_MEDIUM_CD [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-load.c:102:15: style: Redundant initialization for 'succeeded'. The initialized value is overwritten before it is read. [redundantInitialization] cdemu-daemon-3.2.7/src/device-load.c:98:24: note: succeeded is initialized cdemu-daemon-3.2.7/src/device-load.c:102:15: note: succeeded is overwritten cdemu-daemon-3.2.7/src/device-load.c:268:15: style: Redundant initialization for 'succeeded'. The initialized value is overwritten before it is read. [redundantInitialization] cdemu-daemon-3.2.7/src/device-load.c:264:24: note: succeeded is initialized cdemu-daemon-3.2.7/src/device-load.c:268:15: note: succeeded is overwritten cdemu-daemon-3.2.7/src/device-load.c:357:15: style: Variable 'succeeded' is reassigned a value before the old one has been used. [redundantAssignment] cdemu-daemon-3.2.7/src/device-load.c:349:15: note: succeeded is assigned cdemu-daemon-3.2.7/src/device-load.c:357:15: note: succeeded is overwritten cdemu-daemon-3.2.7/src/device-mapping.c:35:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-mapping.c:59:25: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] cdemu-daemon-3.2.7/src/device-mapping.c:78:25: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] cdemu-daemon-3.2.7/src/device-mode-pages.c:88:12: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: entry. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:203:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:212:81: note: Calling function 'append_mode_page', 2nd argument 'mode_page' value is 0 cdemu-daemon-3.2.7/src/device-mode-pages.c:88:12: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:88:33: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: entry. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:203:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:212:81: note: Calling function 'append_mode_page', 2nd argument 'mode_page' value is 0 cdemu-daemon-3.2.7/src/device-mode-pages.c:88:33: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:88:81: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: entry. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:203:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:212:81: note: Calling function 'append_mode_page', 2nd argument 'mode_page' value is 0 cdemu-daemon-3.2.7/src/device-mode-pages.c:88:81: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:394:9: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: mode_page. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:334:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:394:9: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:394:45: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: mode_page. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:334:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:394:45: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:397:38: warning: Either the condition 'mode_page' is redundant or there is possible null pointer dereference: mode_page. [nullPointerRedundantCheck] cdemu-daemon-3.2.7/src/device-mode-pages.c:334:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:397:38: note: Null pointer dereference cdemu-daemon-3.2.7/src/device-mode-pages.c:37:29: style: Variable 'page1' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:38:29: style: Variable 'page2' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:51:29: style: Variable 'page' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:170:12: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:175:27: style: Variable 'page_entry' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:423:12: style: Variable 'raw_entry' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device-recording.c:52:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SUBCHANNEL_Q [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:105:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:178:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SUBCHANNEL_PW [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:308:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_MEDIUM_CD [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:373:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_MEDIUM_CD [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:459:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SUBCHANNEL_Q [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:620:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_RAW_SCRAMBLED [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:777:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_FRAGMENT_PREGAP [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:851:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_AUDIO [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:1007:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SESSION_CDROM [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:1084:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_RAW_SCRAMBLED [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:1250:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_MODE1 [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:1303:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_SECTOR_MODE1 [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:1358:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRAGE_MEDIUM_CD [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device-recording.c:733:35: error: Array 'sao_subchannel_formats[3]' accessed at index 16, which is out of bounds. [arrayIndexOutOfBounds] cdemu-daemon-3.2.7/src/device-recording.c:732:25: note: Assuming that condition 'i<(sizeof(sao_main_formats)/sizeof((sao_main_formats)[0]))' is not redundant cdemu-daemon-3.2.7/src/device-recording.c:733:35: note: Array index out of bounds cdemu-daemon-3.2.7/src/device-recording.c:272:9: style: Condition '!cdemu_device_recording_open_session(self)' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:272:45: note: Calling function 'cdemu_device_recording_open_session' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:272:9: note: Condition '!cdemu_device_recording_open_session(self)' is always false cdemu-daemon-3.2.7/src/device-recording.c:290:9: style: Condition '!cdemu_device_recording_open_track(self,sector_type)' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:290:43: note: Calling function 'cdemu_device_recording_open_track' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:290:9: note: Condition '!cdemu_device_recording_open_track(self,sector_type)' is always false cdemu-daemon-3.2.7/src/device-recording.c:571:23: style: Condition 'self->priv->open_session' is always true [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:745:9: style: Condition '!cdemu_device_recording_open_session(self)' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:745:45: note: Calling function 'cdemu_device_recording_open_session' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:745:9: note: Condition '!cdemu_device_recording_open_session(self)' is always false cdemu-daemon-3.2.7/src/device-recording.c:758:9: style: Condition '!cdemu_device_recording_open_track(self,mirage_track_get_sector_type(self->priv->cue_entry))' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:758:43: note: Calling function 'cdemu_device_recording_open_track' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:758:9: note: Condition '!cdemu_device_recording_open_track(self,mirage_track_get_sector_type(self->priv->cue_entry))' is always false cdemu-daemon-3.2.7/src/device-recording.c:1243:13: style: Condition '!cdemu_device_recording_open_session(self)' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:1243:49: note: Calling function 'cdemu_device_recording_open_session' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:1243:13: note: Condition '!cdemu_device_recording_open_session(self)' is always false cdemu-daemon-3.2.7/src/device-recording.c:1250:9: style: Condition '!cdemu_device_recording_open_track(self,MIRAGE_SECTOR_MODE1)' is always false [knownConditionTrueFalse] cdemu-daemon-3.2.7/src/device-recording.c:1250:43: note: Calling function 'cdemu_device_recording_open_track' returns 1 cdemu-daemon-3.2.7/src/device-recording.c:1250:9: note: Condition '!cdemu_device_recording_open_track(self,MIRAGE_SECTOR_MODE1)' is always false cdemu-daemon-3.2.7/src/device-recording.c:219:69: style: Parameter 'self' can be declared as pointer to const. However it seems that 'cdemu_device_recording_reserve_track' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/device-recording.c:1227:22: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/device-recording.c:219:69: note: Parameter 'self' can be declared as pointer to const cdemu-daemon-3.2.7/src/device-recording.c:1004:27: style: Variable 'p_0x05' can be declared as pointer to const [constVariablePointer] cdemu-daemon-3.2.7/src/device.c:65:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMutex [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device.c:405:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cdemu_device_parent_class [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device.c:450:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cdemu_device_parent_class [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device.c:461:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/device.c:147:63: style:inconclusive: Function 'cdemu_device_get_status' argument 2 names different: declaration 'filenames' definition 'file_names'. [funcArgNamesDifferent] cdemu-daemon-3.2.7/src/device.h:61:63: note: Function 'cdemu_device_get_status' argument 2 names different: declaration 'filenames' definition 'file_names'. cdemu-daemon-3.2.7/src/device.c:147:63: note: Function 'cdemu_device_get_status' argument 2 names different: declaration 'filenames' definition 'file_names'. cdemu-daemon-3.2.7/src/main.c:68:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_CONTINUE [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/main.c:128:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/main.c:226:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] cdemu-daemon-3.2.7/src/main.c:115:5: error: Memory leak: value [memleak] cdemu-daemon-3.2.7/src/main.c:52:143: style: Parameter 'unused_data' can be declared as pointer to const. However it seems that 'log_handler_stdout' is a callback function, if 'unused_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cdemu-daemon-3.2.7/src/main.c:232:31: note: You might need to cast the function pointer here cdemu-daemon-3.2.7/src/main.c:52:143: note: Parameter 'unused_data' can be declared as pointer to const cdemu-daemon-3.2.7/src/device-mode-pages.c:88:12: warning: Null pointer dereference: entry [ctunullpointer] cdemu-daemon-3.2.7/src/device-mode-pages.c:203:9: note: Assuming that condition 'mode_page' is not redundant cdemu-daemon-3.2.7/src/device-mode-pages.c:212:51: note: Calling function append_mode_page, 2nd argument is null cdemu-daemon-3.2.7/src/device-mode-pages.c:88:12: note: Dereferencing argument entry that is null diff: DONE