mesh: Tighten IO and fix out-of-bounds array access
authorInga Stotland <inga.stotland@gmail.com>
Sat, 1 Apr 2023 00:16:02 +0000 (17:16 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
commitfa00afa584f2426d8f53e508868bb74367ea4f07
tree467797e53a37d1fb4c4eae25f06b3135db9a0ebe
parent51e2c7bc93970f474814fe913262aeff2882150b
mesh: Tighten IO and fix out-of-bounds array access

This fixes the out-of-bounds array access in mesh-io-mgmt.c caught
by address sanitizer. Similar fixes were applied earlier to
generic and unit IOs. With this patch, the common code is factored
into a centralized location.
mesh/mesh-io-api.h
mesh/mesh-io-generic.c
mesh/mesh-io-mgmt.c
mesh/mesh-io-unit.c
mesh/mesh-io.c
mesh/mesh-io.h