Commit: 5cc08527c0aaeb47305f3637f064efc80d3f85f1
Parent: 0da5c68413d6ed3ff8afb3638e0a88914bae7153
Author: Brian Gix <brian.gix@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-06-14 23:42:09
Tree: 9dcd62ed0f8118df11277e5fbb960ffceec74277

mesh: Fix keyring snprintf usage range checking snprintf performs it's own range checking and returns a negative value if string construction fails. Not checking the return value throws a warning at compile time on GCC 12 and later. This patch removes redundent range chacking and checks all snprintf return values.

Diffstat

M mesh/keyring.c | 68 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 40 insertions(+), 28 deletions(-)

View Full Diff | Patch