Task #131050 - fixed.err
back to task #131050download
Error: CPPCHECK_WARNING (CWE-476):
gst-plugins-base-1.28.1/gst-libs/gst/tag/gstexiftag.c:1451: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1449| /* +1 because it could be a string without the \0 */
# 1450| data = malloc (alloc_size);
# 1451|-> memcpy (data, info.data + real_offset, count);
# 1452| data[count] = 0;
# 1453|
Error: CPPCHECK_WARNING (CWE-476):
gst-plugins-base-1.28.1/gst-libs/gst/tag/gstexiftag.c:1452: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1450| data = malloc (alloc_size);
# 1451| memcpy (data, info.data + real_offset, count);
# 1452|-> data[count] = 0;
# 1453|
# 1454| gst_buffer_unmap (reader->buffer, &info);
Error: CPPCHECK_WARNING (CWE-476):
gst-plugins-base-1.28.1/gst-libs/gst/tag/gstexiftag.c:1457: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1455| } else {
# 1456| data = malloc (count + 1);
# 1457|-> memcpy (data, (guint8 *) offset_as_data, count);
# 1458| data[count] = 0;
# 1459| }
Error: CPPCHECK_WARNING (CWE-476):
gst-plugins-base-1.28.1/gst-libs/gst/tag/gstexiftag.c:1458: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1456| data = malloc (count + 1);
# 1457| memcpy (data, (guint8 *) offset_as_data, count);
# 1458|-> data[count] = 0;
# 1459| }
# 1460|
Error: CPPCHECK_WARNING (CWE-758):
gst-plugins-base-1.28.1/gst/typefind/gsttypefindfunctions.c:6810: error[shiftTooManyBits]: Shifting 32-bit value by 49 bits is undefined behaviour
# 6808| for (i = 0; i < 8; i++) {
# 6809| leb128_byte = data[i];
# 6810|-> value |= (((gint) leb128_byte & 0x7f) << (i * 7));
# 6811| if (!(leb128_byte & 0x80))
# 6812| break;