mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- Fix an out-of-bounds/segmentation fault in `config_getlist` when parsing command-line options that do not specify bracket offsets (e.g. `--rfsimulator.serveraddr`). Added index bracket verification and guarded `memcpy` against `NULL` pointers on list reallocation. - Initialize `valid_idx` to `ParamList->numelt` in `config_getlist` to properly support overriding and appending elements when a configuration file has existing array items. - Fix memory leaks in `end_configmodule` - Add test cases in `test_config_cmdline.cpp` Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org> and assisted-by Gemini
17 lines
458 B
CMake
17 lines
458 B
CMake
# SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
|
|
add_subdirectory(utils)
|
|
add_subdirectory(config/yaml)
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(config/tests)
|
|
endif()
|
|
|
|
configure_file(cmake_defs.h.in cmake_defs.h @ONLY)
|
|
configure_file(oai_version.h.in oai_version.h @ONLY)
|
|
|
|
add_library(instrumentation INTERFACE)
|
|
target_include_directories(instrumentation INTERFACE .)
|
|
if (TRACY_ENABLE)
|
|
target_link_libraries(instrumentation INTERFACE Tracy::TracyClient)
|
|
endif()
|