-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
OpenVINO Version
Master branch
Operating System
Other (Please specify in description)
Device used for inference
CPU
Framework
None
Model used
No response
Issue description
Core dumped for ov_core_set_property for some keys when value passed is not a string.
E.g. ov_core_set_property(core, "CPU", "LOG_LEVEL", 2); causes a segmentation fault.
This is caused due to nature of variadic args and lack of type checking, from here.
openvino/src/bindings/c/src/common.h
Line 71 in 0d4a14e
| std::string _value = va_arg(args_ptr, char*); \ |
Step-by-step reproduction
No response
Relevant log output
Issue submission checklist
- I'm reporting an issue. It's not a question.
- I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
- There is reproducer code and related data files such as images, videos, models, etc.