Task #132116 - added.err

back to task #132116
download
Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp: scope_hint: In function ‘exr_result_t ht_undo_impl(exr_decode_pipeline_t*, const void*, uint64_t, void*, uint64_t)’
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:207:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘long unsigned int’
#  207 |         if (computedoffset > std::numeric_limits<std::size_t>::max())
#      |             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  205|               computedoffset += (int64_t) decode->channels[i].width *
#  206|                                 (int64_t) decode->channels[i].bytes_per_element;
#  207|->         if (computedoffset > std::numeric_limits<std::size_t>::max())
#  208|               return EXR_ERR_CORRUPT_CHUNK;
#  209|           cs_to_file_ch[cs_i].raster_line_offset = computedoffset;

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:227:29: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  227 |     if (decode->chunk.width != image_width
#      |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
#  225|           siz.get_image_extent ().x - siz.get_image_offset ().x;
#  226|   
#  227|->     if (decode->chunk.width != image_width
#  228|           || decode->chunk.height != image_height
#  229|           || decode->channel_count != siz.get_num_components())

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:228:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  228 |         || decode->chunk.height != image_height
#      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
#  226|   
#  227|       if (decode->chunk.width != image_width
#  228|->         || decode->chunk.height != image_height
#  229|           || decode->channel_count != siz.get_num_components())
#  230|           return EXR_ERR_CORRUPT_CHUNK;

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:229:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int16_t’ {aka ‘short int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  229 |         || decode->channel_count != siz.get_num_components())
#      |            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  227|       if (decode->chunk.width != image_width
#  228|           || decode->chunk.height != image_height
#  229|->         || decode->channel_count != siz.get_num_components())
#  230|           return EXR_ERR_CORRUPT_CHUNK;
#  231|   

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:236:45: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  236 |         if (decode->channels[file_i].height != siz.get_recon_height (cs_i) ||
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  234|           int file_i = cs_to_file_ch[cs_i].file_index;
#  235|   
#  236|->         if (decode->channels[file_i].height != siz.get_recon_height (cs_i) ||
#  237|               decode->channels[file_i].width != siz.get_recon_width (cs_i) ||
#  238|               decode->channels[file_i].height != image_height / siz.get_downsampling (cs_i).y ||

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:237:44: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  237 |             decode->channels[file_i].width != siz.get_recon_width (cs_i) ||
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  235|   
#  236|           if (decode->channels[file_i].height != siz.get_recon_height (cs_i) ||
#  237|->             decode->channels[file_i].width != siz.get_recon_width (cs_i) ||
#  238|               decode->channels[file_i].height != image_height / siz.get_downsampling (cs_i).y ||
#  239|               decode->channels[file_i].width != image_width / siz.get_downsampling (cs_i).x)

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:238:45: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  238 |             decode->channels[file_i].height != image_height / siz.get_downsampling (cs_i).y ||
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  236|           if (decode->channels[file_i].height != siz.get_recon_height (cs_i) ||
#  237|               decode->channels[file_i].width != siz.get_recon_width (cs_i) ||
#  238|->             decode->channels[file_i].height != image_height / siz.get_downsampling (cs_i).y ||
#  239|               decode->channels[file_i].width != image_width / siz.get_downsampling (cs_i).x)
#  240|               return EXR_ERR_CORRUPT_CHUNK;

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:239:44: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  239 |             decode->channels[file_i].width != image_width / siz.get_downsampling (cs_i).x)
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  237|               decode->channels[file_i].width != siz.get_recon_width (cs_i) ||
#  238|               decode->channels[file_i].height != image_height / siz.get_downsampling (cs_i).y ||
#  239|->             decode->channels[file_i].width != image_width / siz.get_downsampling (cs_i).x)
#  240|               return EXR_ERR_CORRUPT_CHUNK;
#  241|       }

Error: COMPILER_WARNING (CWE-195):
openexr-3.4.13/src/lib/OpenEXRCore/internal_ht.cpp:282:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int16_t’ {aka ‘short int’} and ‘ojph::ui32’ {aka ‘unsigned int’}
#  282 |                     if (line_c == static_cast<ojph::ui32>(file_c))
#      |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  280|                       if (y % decode->channels[line_c].y_samples != 0) continue;
#  281|   
#  282|->                     if (line_c == static_cast<ojph::ui32>(file_c))
#  283|                       {
#  284|                           cur_line = cs.pull (next_comp);

Error: COMPILER_WARNING:
openexr-3.4.13/src/test/OpenEXRCoreTest/read.cpp: scope_hint: In function ‘int hardway_height_p(int, int, int)’
openexr-3.4.13/src/test/OpenEXRCoreTest/read.cpp:681:9: warning[-Wunused-but-set-variable=]: variable ‘off’ set but not used
#  681 |     int off = 0;
#      |         ^~~
#  679|       int nlines = 0;
#  680|       int end = start_y + height;
#  681|->     int off = 0;
#  682|   
#  683|       if (y_sampling <= 1) return height;