From e6ea8ef7b6c9c8643c743f084f4562a04c5dc3aa Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Fri, 25 May 2018 11:57:18 -0400 Subject: [PATCH] Bug 1464069 - Check for null message in nr_stun_decode_message; r=drno MozReview-Commit-ID: B1SHDte4miv --HG-- extra : rebase_source : e60dc6b48319f3cfcff2b3411f7eb8cd8928408e --- media/mtransport/third_party/nICEr/src/stun/stun_codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/media/mtransport/third_party/nICEr/src/stun/stun_codec.c b/media/mtransport/third_party/nICEr/src/stun/stun_codec.c index 68bcfa7767b3..2b87c15cc96e 100644 --- a/media/mtransport/third_party/nICEr/src/stun/stun_codec.c +++ b/media/mtransport/third_party/nICEr/src/stun/stun_codec.c @@ -1415,6 +1415,9 @@ nr_stun_decode_message(nr_stun_message *msg, int (*get_password)(void *arg, nr_s nr_stun_attr_info *attr_info; Data *password; + if (!msg) + ABORT(R_BAD_ARGS); + r_log(NR_LOG_STUN, LOG_DEBUG, "Parsing STUN message of %d bytes", msg->length); if (!TAILQ_EMPTY(&msg->attributes))