OpenVINOExecutionProvider::register does not correctly handle string options. The strings are cloned and then passed to map_or_else which extracts the pointer, but the cloned strings are dropped at the end of the lambda, resulting in invalid pointers. Moreover, the strings are not NULL terminated. This results in errors such as You have selcted wrong configuration value for the key 'device_type' if these options are used.
OpenVINOExecutionProvider::register
does not correctly handle string options. The strings are cloned and then passed tomap_or_else
which extracts the pointer, but the cloned strings are dropped at the end of the lambda, resulting in invalid pointers. Moreover, the strings are notNULL
terminated. This results in errors such asYou have selcted wrong configuration value for the key 'device_type'
if these options are used.