From e943fc6e7a3d52fcca1bf6949805bd9e9c3b33ac Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 30 Dec 2015 19:19:50 +0100 Subject: Make sure upb_pbdecoder.status is initialized Otherwhise the end message callback is passed a garbage value. --- upb/pb/decoder.c | 1 + 1 file changed, 1 insertion(+) (limited to 'upb/pb/decoder.c') diff --git a/upb/pb/decoder.c b/upb/pb/decoder.c index e2e79ae..8f4c867 100644 --- a/upb/pb/decoder.c +++ b/upb/pb/decoder.c @@ -1011,6 +1011,7 @@ upb_pbdecoder *upb_pbdecoder_create(upb_env *e, const upb_pbdecodermethod *m, d->env = e; d->limit = d->stack + default_max_nesting - 1; d->stack_size = default_max_nesting; + d->status = NULL; upb_pbdecoder_reset(d); upb_bytessink_reset(&d->input_, &m->input_handler_, d); -- cgit v1.2.3