libcue-2.3.0-10.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libcue-2.3.0-build/libcue-2.3.0/cd.c: scope_hint: In function ‘track_delete.part.0’
libcue-2.3.0-build/libcue-2.3.0/cd.c:71:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘track’
#   69|   		rem_free(track_get_rem(track));
#   70|   
#   71|-> 		free(track->isrc);
#   72|   
#   73|   		free(track->zero_pre.name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libcue-2.3.0-build/libcue-2.3.0/cdtext.c: scope_hint: In function ‘cdtext_set’
libcue-2.3.0-build/libcue-2.3.0/cdtext.c:81:47: warning[-Wanalyzer-malloc-leak]: leak of ‘*cdtext.value’
#   79|   			if (pti == cdtext->pti) {
#   80|   				free (cdtext->value);
#   81|-> 				cdtext->value = strdup (value);
#   82|   			}
#   83|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c: scope_hint: In function ‘yyparse’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:476:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:131:40: note: in definition of macro ‘YY_CAST’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:462:25: note: in expansion of macro ‘YYMALLOC’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1134:20: note: in expansion of macro ‘YYSTACK_ALLOC’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:131:40: note: in definition of macro ‘YY_CAST’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:462:25: note: in expansion of macro ‘YYMALLOC’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1134:20: note: in expansion of macro ‘YYSTACK_ALLOC’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:521:9: note: in expansion of macro ‘YYCOPY’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1137:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1093:3: note: in expansion of macro ‘YY_STACK_PRINT’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:131:40: note: in definition of macro ‘YY_CAST’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:462:25: note: in expansion of macro ‘YYMALLOC’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1134:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  474|   #  endif
#  475|   #  ifndef YYMALLOC
#  476|-> #   define YYMALLOC malloc
#  477|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  478|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:536:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:521:9: note: in expansion of macro ‘YYCOPY’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1137:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:521:9: note: in expansion of macro ‘YYCOPY’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1137:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:521:9: note: in expansion of macro ‘YYCOPY’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_parser.c:1137:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  534|   #  if defined __GNUC__ && 1 < __GNUC__
#  535|   #   define YYCOPY(Dst, Src, Count) \
#  536|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  537|   #  else
#  538|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c:1752:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1750|   				else
# 1751|   					b->yy_buf_size *= 2;
# 1752|-> 
# 1753|   				b->yy_ch_buf = (char *)
# 1754|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_create_buffer’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c:2044:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_create_buffer’
# 2042|   	 * we need to put in 2 end-of-buffer characters.
# 2043|   	 */
# 2044|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 2045|   	if ( ! b->yy_ch_buf )
# 2046|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def7]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c:2084: warning[nullPointer]: Possible null pointer dereference: b
# 2082|       
# 2083|   	yy_flush_buffer( b );
# 2084|-> 
# 2085|   	b->yy_input_file = file;
# 2086|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def8]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c:2085: warning[nullPointer]: Possible null pointer dereference: b
# 2083|   	yy_flush_buffer( b );
# 2084|   
# 2085|-> 	b->yy_input_file = file;
# 2086|   	b->yy_fill_buffer = 1;
# 2087|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_scan_buffer’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c:2298:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
libcue-2.3.0-build/libcue-2.3.0/redhat-linux-build/cue_scanner.c: scope_hint: In function ‘yy_scan_buffer’
# 2296|   	for ( i = 0; i < _yybytes_len; ++i )
# 2297|   		buf[i] = yybytes[i];
# 2298|-> 
# 2299|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libcue-2.3.0-build/libcue-2.3.0/rem.c: scope_hint: In function ‘rem_set’
libcue-2.3.0-build/libcue-2.3.0/rem.c:103:36: warning[-Wanalyzer-malloc-leak]: leak of ‘*rem.value’
#  101|   		{
#  102|   			free(rem->value);
#  103|-> 			rem->value = strdup(value);
#  104|   			return;
#  105|   		}

Error: COMPILER_WARNING: [#def11]
libcue-2.3.0-build/libcue-2.3.0/rem.c:110:1: warning[-Wenum-int-mismatch]: conflicting types for ‘rem_get’ due to enum/integer mismatch; have ‘const char *(RemType,  Rem *)’
#  110 | rem_get(        RemType cmt,
#      | ^~~~~~~
libcue-2.3.0-build/libcue-2.3.0/rem.h:27: included_from: Included from here.
libcue-2.3.0-build/libcue-2.3.0/rem.c:27: included_from: Included from here.
libcue-2.3.0-build/libcue-2.3.0/libcue.h:136:24: note: previous declaration of ‘rem_get’ with type ‘const char *(unsigned int,  Rem *)’
#  136 | CUE_EXPORT const char* rem_get(unsigned int, Rem*);
#      |                        ^~~~~~~
#  108|   
#  109|   const char*
#  110|-> rem_get(	RemType cmt,
#  111|   		Rem* rem)
#  112|   {

Error: COMPILER_WARNING: [#def12]
libcue-2.3.0-build/libcue-2.3.0/time.c: scope_hint: In function ‘time_frame_to_mmssff’
libcue-2.3.0-build/libcue-2.3.0/time.c:33:33: warning[-Wformat-overflow=]: ‘%02d’ directive writing between 2 and 3 bytes into a region of size between 0 and 3
#   33 |         sprintf(msf, "%02d:%02d:%02d", minutes, seconds, frames);
#      |                                 ^~~~
libcue-2.3.0-build/libcue-2.3.0/time.c:33:22: note: directive argument in the range [-74, 74]
#   33 |         sprintf(msf, "%02d:%02d:%02d", minutes, seconds, frames);
#      |                      ^~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 9 and 20 bytes into a destination of size 9
#   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   31 |                                   __glibc_objsize (__s), __fmt,
#      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   32 |                                   __va_arg_pack ());
#      |                                   ~~~~~~~~~~~~~~~~~
#   31|   
#   32|   	time_frame_to_msf(f, &minutes, &seconds, &frames);
#   33|-> 	sprintf(msf, "%02d:%02d:%02d", minutes, seconds, frames);
#   34|   
#   35|   	return msf;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-220.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibcue-2.3.0-10.fc42
store-results-to/tmp/tmp47vzzcw2/libcue-2.3.0-10.fc42.tar.xz
time-created2024-11-13 01:17:01
time-finished2024-11-13 01:18:10
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp47vzzcw2/libcue-2.3.0-10.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp47vzzcw2/libcue-2.3.0-10.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9