diff options
author | Ole Troan <otroan@employees.org> | 2024-08-01 14:06:24 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2024-08-07 11:46:51 +0000 |
commit | 9aa833b144200e88a382f3583196533c95d5e68f (patch) | |
tree | 086f8a7e38570d4bcb7e87513711eb423323f917 /src/vppinfra/format.h | |
parent | fa7b7a41e7ca9400dda2266a10dd9179be40c128 (diff) |
vppapigen: ensure address types are nul terminated
A string generated from format() may not be nul terminated.
Type: fix
Change-Id: I88452e446c3504d70758e9009c65be5466034d92
Signed-off-by: Ole Troan <otroan@employees.org>
Diffstat (limited to 'src/vppinfra/format.h')
-rw-r--r-- | src/vppinfra/format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vppinfra/format.h b/src/vppinfra/format.h index a1a70a2d64f..14bac869f89 100644 --- a/src/vppinfra/format.h +++ b/src/vppinfra/format.h @@ -372,6 +372,8 @@ int test_unformat_main (unformat_input_t * input); created circular dependency problems. */ int test_vec_main (unformat_input_t * input); +char *format_c_string (u8 *s, const char *fmt, ...); + #endif /* included_format_h */ /* |