Skip to content

Commit

Permalink
Fixed error message buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Feb 19, 2021
1 parent eb0fdda commit ec9ba3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upb/def.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ec9ba3f

Please sign in to comment.