mirror of https://github.com/yandex/odyssey.git
check that strcat would not overflow static size buffer
This commit is contained in:
parent
5a31565901
commit
1cab69f930
|
@ -44,6 +44,10 @@ od_target_module_add(od_logger_t *logger,
|
|||
goto error_close_handle;
|
||||
}
|
||||
|
||||
if (strlen(module_ptr->path) + strlen(target_module_path) + 1 >
|
||||
sizeof(module_ptr->path))
|
||||
goto error_close_handle;
|
||||
|
||||
module_ptr->handle = handle;
|
||||
od_list_init(&module_ptr->link);
|
||||
od_list_append(&modules->link, &module_ptr->link);
|
||||
|
|
Loading…
Reference in New Issue