Quantcast
Channel: Clusters and HPC Technology
Viewing all articles
Browse latest Browse all 927

Intel Inspector: Uninitialized memory access for range loop

$
0
0

Hi all,

I use following Software:

* Microsoft Windows 
* Intel® Parallel Studio XE Composer Edition for C++ Windows* 2016
* Intel Inspector Xe 2016

Following codes cause Uninitialized memory access

std::all_of((uint8_t*)vector_type.data(),

                           (uint8_t*)(vector_type.data() + vector_type.size()),

                           [](uint8_t a) { return 0 == a; })

and

std::vector<uint8_t>(&var_name[2],

                            &var_name[var_name.size() - 60])

var_name.size if bigger than 100.

 

Can anyone explain me the reason of this error, pls?

 

WBR,

Dilshod

Zone: 


Viewing all articles
Browse latest Browse all 927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>