Commit: cffd5832a52cab71679e0bc6ee02a8f7816f1950
Parent: de8e7cfce25b8d717f5ee60ee3b79d426fdcc681
Author: Inga Stotland <inga.stotland@gmail.com>
Committer: Brian Gix <brian.gix@gmail.com>
Date: 2023-04-03 23:29:00
Tree: 1521bc779269d8bd7b97679952bddcc9ee710021

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.

Diffstat

M mesh/mesh-io-api.h | 7 +++++++
M mesh/mesh-io-generic.c | 70 ++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M mesh/mesh-io-mgmt.c | 56 ++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M mesh/mesh-io-unit.c | 30 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M mesh/mesh-io.c | 45 +++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - -
M mesh/mesh-io.h | 2 - -

6 files changed, 50 insertions(+), 160 deletions(-)

View Full Diff | Patch