From ec9ba3f89312c6db90e9e3e9f80ef02f1fb6bda7 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 19 Feb 2021 12:40:58 -0800 Subject: [PATCH] Fixed error message buffer overflow. --- upb/def.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upb/def.c b/upb/def.c index d36c73809b..30819bdd9e 100644 --- a/upb/def.c +++ b/upb/def.c @@ -1399,7 +1399,8 @@ static const void *symtab_resolve(symtab_addctx *ctx, const upb_fielddef *f, } notfound: - symtab_errf(ctx, "couldn't resolve name '%s'", sym.data); + symtab_errf(ctx, "couldn't resolve name '" UPB_STRVIEW_FORMAT "'", + UPB_STRVIEW_ARGS(sym)); } static void create_oneofdef(