platform library are missing SAL annotation (#1742)

* enable app verifier for cicd build

* SAL annotations

* changed yml file

* change _In_ to _Inout_

* update doxygen

* Update libs/platform/user/ebpf_handle_user.c

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* Update libs/platform/kernel/ebpf_handle_kernel.c

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
This commit is contained in:
Delaram Amiri 2022-12-13 16:06:01 -08:00 коммит произвёл GitHub
Родитель 3e4d71fd8c
Коммит 236182b040
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -32,13 +32,13 @@ extern "C"
* @brief Create a handle that holds a reference on the object.
*
* @param[out] handle Pointer to memory that contains the handle on success.
* @param[in] object Object to be referenced by this handle.
* @param[in,out] object Object to write to.
* @retval EBPF_SUCCESS The operation was successful.
* @retval EBPF_NO_MEMORY Unable to allocate resources for this
* operation.
*/
_Must_inspect_result_ ebpf_result_t
ebpf_handle_create(ebpf_handle_t* handle, struct _ebpf_base_object* object);
ebpf_handle_create(_Out_ ebpf_handle_t* handle, _Inout_ struct _ebpf_base_object* object);
/**
* @brief Remove an existing handle from the handle table and release its

Просмотреть файл

@ -18,7 +18,7 @@ ebpf_handle_table_terminate()
{}
_Must_inspect_result_ ebpf_result_t
ebpf_handle_create(ebpf_handle_t* handle, ebpf_base_object_t* object)
ebpf_handle_create(_Out_ ebpf_handle_t* handle, _Inout_ ebpf_base_object_t* object)
{
EBPF_LOG_ENTRY();
ebpf_result_t return_value;

Просмотреть файл

@ -40,7 +40,7 @@ ebpf_handle_table_terminate()
}
_Must_inspect_result_ ebpf_result_t
ebpf_handle_create(ebpf_handle_t* handle, ebpf_base_object_t* object)
ebpf_handle_create(_Out_ ebpf_handle_t* handle, _Inout_ ebpf_base_object_t* object)
{
EBPF_LOG_ENTRY();
ebpf_handle_t new_handle;