Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
562 stars 561 forks source link

framework/src/eventloop: Fix Svace issues #6209

Closed kishore-sn closed 1 month ago

kishore-sn commented 1 month ago

Fix Svace issue related to out of bounds array access. OVERFLOW_UNDER_CHECK Buffer 'g_thread_safe_cb_list' of size 128 accessed at eventloop_async.c:130 can overflow, since its index 'list_idx' can have value 128 that is out of range, as indicated by preceding conditional expression at eventloop_async.c:125