Skip to content

[Bug]: Core dumped for ov_core_set_property [C-API] #32520

@rahulchaphalkar

Description

@rahulchaphalkar

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.

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions