Task #131644 - fixed.err
back to task #131644download
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/aaip_0_2.c: scope_hint: In function 'aaip_decode_attrs'
libisofs-1.5.6/libisofs/aaip_0_2.c:1831:36: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1831 | aaip->list_names= calloc(sizeof(char *), aaip->list_size);
# | ^~~~
libisofs-1.5.6/libisofs/aaip_0_2.c:1831:36: note: earlier argument should specify number of elements, later size of each element
# 1829| return(3);
# 1830| aaip->list_mem_used+= new_mem;
# 1831|-> aaip->list_names= calloc(sizeof(char *), aaip->list_size);
# 1832| aaip->list_value_lengths= calloc(sizeof(size_t), aaip->list_size);
# 1833| aaip->list_values= calloc(sizeof(char *), aaip->list_size);
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/aaip_0_2.c:1832:44: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1832 | aaip->list_value_lengths= calloc(sizeof(size_t), aaip->list_size);
# | ^~~~~~
libisofs-1.5.6/libisofs/aaip_0_2.c:1832:44: note: earlier argument should specify number of elements, later size of each element
# 1830| aaip->list_mem_used+= new_mem;
# 1831| aaip->list_names= calloc(sizeof(char *), aaip->list_size);
# 1832|-> aaip->list_value_lengths= calloc(sizeof(size_t), aaip->list_size);
# 1833| aaip->list_values= calloc(sizeof(char *), aaip->list_size);
# 1834| if(aaip->list_names == NULL || aaip->list_value_lengths == NULL ||
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/aaip_0_2.c:1833:37: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1833 | aaip->list_values= calloc(sizeof(char *), aaip->list_size);
# | ^~~~
libisofs-1.5.6/libisofs/aaip_0_2.c:1833:37: note: earlier argument should specify number of elements, later size of each element
# 1831| aaip->list_names= calloc(sizeof(char *), aaip->list_size);
# 1832| aaip->list_value_lengths= calloc(sizeof(size_t), aaip->list_size);
# 1833|-> aaip->list_values= calloc(sizeof(char *), aaip->list_size);
# 1834| if(aaip->list_names == NULL || aaip->list_value_lengths == NULL ||
# 1835| aaip->list_values == NULL)
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/ecma119_tree.c: scope_hint: In function 'match_hardlinks'
libisofs-1.5.6/libisofs/ecma119_tree.c:1193:44: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1193 | nodes = (Ecma119Node **) calloc(sizeof(Ecma119Node *), nodes_size);
# | ^~~~~~~~~~~
libisofs-1.5.6/libisofs/ecma119_tree.c:1193:44: note: earlier argument should specify number of elements, later size of each element
# 1191| return ret;
# 1192| nodes_size = node_count;
# 1193|-> nodes = (Ecma119Node **) calloc(sizeof(Ecma119Node *), nodes_size);
# 1194| if (nodes == NULL)
# 1195| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/eltorito.c:1150:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 1150 | "boot",
# | ^~~~~~
# 1148| IsoStreamIface catalog_stream_class = {
# 1149| 0,
# 1150|-> "boot",
# 1151| catalog_open,
# 1152| catalog_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/external.c: scope_hint: In function 'extf_running_new'
libisofs-1.5.6/libisofs/filters/external.c:67:34: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 67 | *running = o = calloc(sizeof(ExternalFilterRuntime), 1);
# | ^~~~~~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/external.c:67:34: note: earlier argument should specify number of elements, later size of each element
# 65| {
# 66| ExternalFilterRuntime *o;
# 67|-> *running = o = calloc(sizeof(ExternalFilterRuntime), 1);
# 68| if (o == NULL) {
# 69| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/external.c: scope_hint: At top level
libisofs-1.5.6/libisofs/filters/external.c:640:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 640 | "extf",
# | ^~~~~~
# 638| IsoStreamIface extf_stream_class = {
# 639| 4,
# 640|-> "extf",
# 641| extf_stream_open,
# 642| extf_stream_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/gzip.c: scope_hint: In function 'gzip_running_new'
libisofs-1.5.6/libisofs/filters/gzip.c:102:34: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 102 | *running = o = calloc(sizeof(GzipFilterRuntime), 1);
# | ^~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/gzip.c:102:34: note: earlier argument should specify number of elements, later size of each element
# 100| GzipFilterRuntime *o;
# 101|
# 102|-> *running = o = calloc(sizeof(GzipFilterRuntime), 1);
# 103| if (o == NULL) {
# 104| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/gzip.c: scope_hint: At top level
libisofs-1.5.6/libisofs/filters/gzip.c:582:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 582 | "gzip",
# | ^~~~~~
# 580| IsoStreamIface gzip_stream_compress_class = {
# 581| 4,
# 582|-> "gzip",
# 583| gzip_stream_open,
# 584| gzip_stream_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/gzip.c:599:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 599 | "pizg",
# | ^~~~~~
# 597| IsoStreamIface gzip_stream_uncompress_class = {
# 598| 4,
# 599|-> "pizg",
# 600| gzip_stream_open,
# 601| gzip_stream_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/gzip.c: scope_hint: In function 'gzip_filter_get_filter'
libisofs-1.5.6/libisofs/filters/gzip.c:677:25: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 677 | str = calloc(sizeof(IsoStream), 1);
# | ^~~~~~~~~
libisofs-1.5.6/libisofs/filters/gzip.c:677:25: note: earlier argument should specify number of elements, later size of each element
# 675| }
# 676|
# 677|-> str = calloc(sizeof(IsoStream), 1);
# 678| if (str == NULL) {
# 679| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/gzip.c:681:26: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 681 | data = calloc(sizeof(GzipFilterStreamData), 1);
# | ^~~~~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/gzip.c:681:26: note: earlier argument should specify number of elements, later size of each element
# 679| return ISO_OUT_OF_MEM;
# 680| }
# 681|-> data = calloc(sizeof(GzipFilterStreamData), 1);
# 682| if (data == NULL) {
# 683| free(str);
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c: scope_hint: In function 'ziso_running_new'
libisofs-1.5.6/libisofs/filters/zisofs.c:220:34: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 220 | *running = o = calloc(sizeof(ZisofsFilterRuntime), 1);
# | ^~~~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/zisofs.c:220:34: note: earlier argument should specify number of elements, later size of each element
# 218| {
# 219| ZisofsFilterRuntime *o;
# 220|-> *running = o = calloc(sizeof(ZisofsFilterRuntime), 1);
# 221| if (o == NULL) {
# 222| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c: scope_hint: At top level
libisofs-1.5.6/libisofs/filters/zisofs.c:1285:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 1285 | "ziso",
# | ^~~~~~
# 1283| IsoStreamIface ziso_stream_compress_class = {
# 1284| 4,
# 1285|-> "ziso",
# 1286| ziso_stream_open,
# 1287| ziso_stream_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c:1302:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 1302 | "osiz",
# | ^~~~~~
# 1300| IsoStreamIface ziso_stream_uncompress_class = {
# 1301| 4,
# 1302|-> "osiz",
# 1303| ziso_stream_open,
# 1304| ziso_stream_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c: scope_hint: In function 'ziso_filter_get_filter'
libisofs-1.5.6/libisofs/filters/zisofs.c:1384:25: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1384 | str = calloc(sizeof(IsoStream), 1);
# | ^~~~~~~~~
libisofs-1.5.6/libisofs/filters/zisofs.c:1384:25: note: earlier argument should specify number of elements, later size of each element
# 1382| }
# 1383|
# 1384|-> str = calloc(sizeof(IsoStream), 1);
# 1385| if (str == NULL) {
# 1386| return ISO_OUT_OF_MEM;
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c:1389:31: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1389 | unstd = calloc(sizeof(ZisofsUncomprStreamData), 1);
# | ^~~~~~~~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/zisofs.c:1389:31: note: earlier argument should specify number of elements, later size of each element
# 1387| }
# 1388| if (flag & 2) {
# 1389|-> unstd = calloc(sizeof(ZisofsUncomprStreamData), 1);
# 1390| data = (ZisofsFilterStreamData *) unstd;
# 1391| } else {
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/filters/zisofs.c:1392:31: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1392 | cnstd = calloc(sizeof(ZisofsComprStreamData), 1);
# | ^~~~~~~~~~~~~~~~~~~~~
libisofs-1.5.6/libisofs/filters/zisofs.c:1392:31: note: earlier argument should specify number of elements, later size of each element
# 1390| data = (ZisofsFilterStreamData *) unstd;
# 1391| } else {
# 1392|-> cnstd = calloc(sizeof(ZisofsComprStreamData), 1);
# 1393| data = (ZisofsFilterStreamData *) cnstd;
# 1394| }
Error: GCC_ANALYZER_WARNING (CWE-476):
libisofs-1.5.6/libisofs/fs_image.c:5612:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'lba_mem'
libisofs-1.5.6/libisofs/fs_image.c:5881:5: enter_function: entry to 'iso_image_report_el_torito'
libisofs-1.5.6/libisofs/fs_image.c:5884:12: call_function: calling 'iso_image_report_boot_eqp' from 'iso_image_report_el_torito'
# 5610| for (i= 0; i < bootcat->num_bootimages; i++) {
# 5611| img = bootcat->bootimages[i];
# 5612|-> if (lba_mem[i] != 0xffffffff) {
# 5613| sprintf(msg, "El Torito img path : %3d ", i + 1);
# 5614| iso_impsysa_report_blockpath(image, target, msg, lba_mem[i], 1);
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/hfsplus.c: scope_hint: In function 'try_mangle.constprop.0'
libisofs-1.5.6/libisofs/hfsplus.c:1411:31: warning[-Wformat-overflow=]: '%s' directive writing up to 8 bytes into a region of size between 1 and 255
# 1411 | sprintf(new_name, "%s_%s", prefix, number);
# | ^~ ~~~~~~
/usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 264 bytes into a destination of size 256
# 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 31 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 32 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1409| traditional "_" causes longer rotations
# 1410| */
# 1411|-> sprintf(new_name, "%s_%s", prefix, number);
# 1412|
# 1413| /* The original name is kept until the end of the try */
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/iso1999.c: scope_hint: In function 'create_node'
libisofs-1.5.6/libisofs/iso1999.c:117:51: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 117 | n->info.dir->children = calloc(sizeof(void*), dir->nchildren);
# | ^~~~
libisofs-1.5.6/libisofs/iso1999.c:117:51: note: earlier argument should specify number of elements, later size of each element
# 115| n->info.dir->children = NULL;
# 116| if (dir->nchildren > 0) {
# 117|-> n->info.dir->children = calloc(sizeof(void*), dir->nchildren);
# 118| if (n->info.dir->children == NULL) {
# 119| free(n->info.dir);
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/joliet.c: scope_hint: In function 'create_node'
libisofs-1.5.6/libisofs/joliet.c:163:56: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 163 | joliet->info.dir->children = calloc(sizeof(void*), dir->nchildren);
# | ^~~~
libisofs-1.5.6/libisofs/joliet.c:163:56: note: earlier argument should specify number of elements, later size of each element
# 161| joliet->info.dir->children = NULL;
# 162| if (dir->nchildren > 0) {
# 163|-> joliet->info.dir->children = calloc(sizeof(void*), dir->nchildren);
# 164| if (joliet->info.dir->children == NULL) {
# 165| free(joliet->info.dir);
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/stream.c:211:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 211 | "fsrc",
# | ^~~~~~
# 209| IsoStreamIface fsrc_stream_class = {
# 210| 4, /* version */
# 211|-> "fsrc",
# 212| fsrc_open,
# 213| fsrc_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/stream.c:499:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 499 | "cout",
# | ^~~~~~
# 497| IsoStreamIface cut_out_stream_class = {
# 498| 4, /* version */
# 499|-> "cout",
# 500| cut_out_open,
# 501| cut_out_close,
Error: COMPILER_WARNING:
libisofs-1.5.6/libisofs/stream.c:743:5: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available)
# 743 | "mem ",
# | ^~~~~~
# 741| IsoStreamIface mem_stream_class = {
# 742| 4, /* version */
# 743|-> "mem ",
# 744| mem_open,
# 745| mem_close,
Error: GCC_ANALYZER_WARNING (CWE-122):
libisofs-1.5.6/libisofs/util.c:1936:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libisofs-1.5.6/libisofs/util.c:1925:7: enter_function: entry to 'iso_util_strcopy_untail'
libisofs-1.5.6/libisofs/util.c:1930:11: call_function: calling 'iso_util_strcopy' from 'iso_util_strcopy_untail'
libisofs-1.5.6/libisofs/util.c:1930:11: return_function: returning to 'iso_util_strcopy_untail' from 'iso_util_strcopy'
libisofs-1.5.6/libisofs/util.c:1931:8: branch_false: following 'false' branch...
libisofs-1.5.6/libisofs/util.c:1935:16: branch_false: ...to here
libisofs-1.5.6/libisofs/util.c:1935:28: branch_true: following 'true' branch (when 'len >= 0')...
libisofs-1.5.6/libisofs/util.c:1936:16: branch_true: ...to here
libisofs-1.5.6/libisofs/util.c:1936:13: danger: read of 1 byte at offset '(sizetype)(int)((unsigned int)len_in + 4294967295)' exceeds the buffer
# 1934| /* remove trailing spaces */
# 1935| for (len = len_in - 1; len >= 0; --len) {
# 1936|-> if (str[len] != ' ')
# 1937| break;
# 1938| str[len] = 0;
Error: GCC_ANALYZER_WARNING (CWE-122):
libisofs-1.5.6/libisofs/util.c:1938:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libisofs-1.5.6/libisofs/util.c:1925:7: enter_function: entry to 'iso_util_strcopy_untail'
libisofs-1.5.6/libisofs/util.c:1930:11: call_function: calling 'iso_util_strcopy' from 'iso_util_strcopy_untail'
libisofs-1.5.6/libisofs/util.c:1930:11: return_function: returning to 'iso_util_strcopy_untail' from 'iso_util_strcopy'
libisofs-1.5.6/libisofs/util.c:1931:8: branch_false: following 'false' branch...
libisofs-1.5.6/libisofs/util.c:1935:16: branch_false: ...to here
libisofs-1.5.6/libisofs/util.c:1935:28: branch_true: following 'true' branch (when 'len >= 0')...
libisofs-1.5.6/libisofs/util.c:1936:16: branch_true: ...to here
libisofs-1.5.6/libisofs/util.c:1936:12: branch_false: following 'false' branch...
libisofs-1.5.6/libisofs/util.c:1938:9: branch_false: ...to here
libisofs-1.5.6/libisofs/util.c:1938:9: danger: write of 1 byte at offset '(sizetype)(int)((unsigned int)len_in + 4294967295)' exceeds the buffer
# 1936| if (str[len] != ' ')
# 1937| break;
# 1938|-> str[len] = 0;
# 1939| }
# 1940| return str;