Task #131046 - fixed.err
back to task #131046download
Error: CPPCHECK_WARNING (CWE-476):
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uri_data
# 147| uri_data = malloc (sizeof (GESMultiFileURI));
# 148|
# 149|-> uri_data->start = 0;
# 150| uri_data->end = -1;
# 151|
Error: GCC_ANALYZER_WARNING (CWE-476):
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:149:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘uri_data’
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:147:14: acquire_memory: this call could return NULL
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:149:3: danger: ‘uri_data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 147| uri_data = malloc (sizeof (GESMultiFileURI));
# 148|
# 149|-> uri_data->start = 0;
# 150| uri_data->end = -1;
# 151|
Error: CPPCHECK_WARNING (CWE-476):
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uri_data
# 148|
# 149| uri_data->start = 0;
# 150|-> uri_data->end = -1;
# 151|
# 152| at = strchr (uri, '@');
Error: COMPILER_WARNING (CWE-704):
gst-editing-services-1.28.1/ges/ges-multi-file-source.c: scope_hint: In function ‘ges_multi_file_uri_new’
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:152:6: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 152 | at = strchr (uri, '@');
# | ^
# 150| uri_data->end = -1;
# 151|
# 152|-> at = strchr (uri, '@');
# 153| if (at != NULL) {
# 154| charpos = (int) (at - uri);
Error: COMPILER_WARNING (CWE-704):
gst-editing-services-1.28.1/ges/ges-multi-file-source.c:152:6: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 150| uri_data->end = -1;
# 151|
# 152|-> at = strchr (uri, '@');
# 153| if (at != NULL) {
# 154| charpos = (int) (at - uri);