LineIdSeverityMessage
libparted/arch/beos.c
445arithOperationsOnVoidPointerportability'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
477unusedVariablestyleUnused variable: status
479unreadVariablestyleVariable 'write_length' is assigned a value that is never used.
534arithOperationsOnVoidPointerportability'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
libparted/arch/gnu.c
61unreadVariablestyleVariable 'store_block_size' is assigned a value that is never used.
353unreadVariablestyleVariable 'arch_specific' is assigned a value that is never used.
483arithOperationsOnVoidPointerportability'user_buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
484arithOperationsOnVoidPointerportability'store_read_buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
509unreadVariablestyleVariable 'arch_specific' is assigned a value that is never used.
510unusedVariablestyleUnused variable: err
511unusedVariablestyleUnused variable: ex_status
512unusedVariablestyleUnused variable: temp
513unusedVariablestyleUnused variable: local_buffer
514unusedVariablestyleUnused variable: did_read
515unusedVariablestyleUnused variable: did_write
587arithOperationsOnVoidPointerportability'temp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
625arithOperationsOnVoidPointerportability'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
665arithOperationsOnVoidPointerportability'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
753unusedVariablestyleUnused variable: status
754unreadVariablestyleVariable 'done' is assigned a value that is never used.
libparted/arch/linux.c
539obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
715invalidScanfArgType_intwarning%u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
715invalidScanfArgType_intwarning%u in format string (no. 2) requires 'unsigned int *' but the argument type is 'int *'.
715invalidScanfArgType_intwarning%u in format string (no. 3) requires 'unsigned int *' but the argument type is 'int *'.
715invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
1912unreadVariablestyleVariable 'arch_specific' is assigned a value that is never used.
1914unusedVariablestyleUnused variable: diobuf
1915unusedVariablestyleUnused variable: diobuf_start
2172invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
2378invalidscanfwarningscanf without field width limits can crash with huge input data.
2595invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
2625invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
2763invalidScanfArgType_intwarning%Ld in format string (no. 3) requires 'long long *' but the argument type is 'unsigned long long *'.
2763invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
libparted/fs/ext2/interface.c
38obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/hfs/probe.c
74obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/jfs/jfs.c
40obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/nilfs2/nilfs2.c
115obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
116obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/ntfs/ntfs.c
38obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/r/fat/bootsector.c
290bufferAccessOutOfBoundserrorBuffer is accessed out of bounds.
libparted/fs/r/hfs/hfs.c
1043useClosedFileerrorUsed file that is not opened.
1076useClosedFileerrorUsed file that is not opened.
1096useClosedFileerrorUsed file that is not opened.
1148useClosedFileerrorUsed file that is not opened.
1172useClosedFileerrorUsed file that is not opened.
libparted/fs/reiserfs/reiserfs.c
60obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/ufs/ufs.c
179obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
215obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/xfs/xfs.c
41obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/fs/xfs/xfs_types.h
280variableHidingTypedefstyle, inconcl.The typedef '__psint_t' hides a typedef with the same name.
281variableHidingTypedefstyle, inconcl.The typedef '__psunsigned_t' hides a typedef with the same name.
283variableHidingTypedefstyle, inconcl.The typedef '__psint_t' hides a typedef with the same name.
284variableHidingTypedefstyle, inconcl.The typedef '__psunsigned_t' hides a typedef with the same name.
libparted/labels/dasd.c
538unreadVariablestyleVariable 'arch_specific' is assigned a value that is never used.
539unreadVariablestyleVariable 'disk_specific' is assigned a value that is never used.
838unreadVariablestyleVariable 'disk_specific' is assigned a value that is never used.
911unreadVariablestyleVariable 'cyl_size' is assigned a value that is never used.
libparted/labels/dos.c
1289bufferAccessOutOfBoundserrorBuffer is accessed out of bounds: table.boot_code
libparted/labels/fdasd.c
322unsignedLessThanZerostyleChecking if unsigned variable 'b' is less than zero.
974redundantAssignmentperformance, inconcl.Variable 'label_block' is reassigned a value before the old one has been used if variable is no semaphore variable.
libparted/labels/gpt.c
1138pointerSizewarningSize of pointer 'pmbr' used instead of size of its data.
1379pointerSizewarningSize of pointer 'gpt_part_data' used instead of size of its data.
libparted/labels/loop.c
168obsoleteFunctionsallocastyleObsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead.
libparted/labels/mac.c
379arrayIndexThenCheckstyleArray index 'i' is used before limits check.
libparted/labels/sun.c
142syntaxErrorerrorInvalid number of character ({) when these macros are defined: 'DISCOVER_ONLY'.
libparted/unit.c
253invalidPrintfArgType_floatwarning%f in format string (no. 2) requires 'double' but the argument type is 'int'.
381invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
405uninitvarerrorUninitialized variable: chs
406uninitvarerrorUninitialized variable: chs
407uninitvarerrorUninitialized variable: chs
528invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
parted/parted.c
1175varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1807varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1823varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1840varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1854varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1874varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1919varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1928varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1937varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1939varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1945varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1959varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1969varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1986varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1995varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1997varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2003varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2009varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2017varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2019varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2025varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2027varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2033varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2042varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2044varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2051varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2060varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2068varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2070varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2077varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2081varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
parted/strlist.c
167memleakOnReallocerrorCommon realloc mistake: 'result' nulled but not freed upon failure
303varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
364memleakOnReallocerrorCommon realloc mistake: 'str' nulled but not freed upon failure
parted/ui.c
916invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
1246duplicateExpressionstyleSame expression on both sides of '||'.
1250duplicateExpressionstyleSame expression on both sides of '||'.
1254duplicateExpressionstyleSame expression on both sides of '||'.
1351invalidscanf_libcportabilityscanf without field width limits can crash with huge input data on some versions of libc.
1571varFuncNullUBportabilityPassing NULL after the last typed argument to a variadic function leads to undefined behaviour.
1633duplicateBreakstyleConsecutive return, break, continue, goto or throw statements are unnecessary.