From: Dragos Oancea Date: Fri, 31 Jan 2020 15:19:08 +0000 (+0000) Subject: [sofia-sip] scan-build: Null pointer passed as an argument to a 'nonnull' parameter X-Git-Tag: v1.10.3^2~217^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F288%2Fhead;p=thirdparty%2Ffreeswitch.git [sofia-sip] scan-build: Null pointer passed as an argument to a 'nonnull' parameter --- diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser_util.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser_util.c index 11fc1358eb..b64c4489df 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser_util.c +++ b/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser_util.c @@ -1762,7 +1762,7 @@ issize_t msg_unquoted_e(char *b, isize_t bsiz, char const *s) s++; } else { - if (e + n <= bsiz) + if (b && (e + n <= bsiz)) memcpy(b + e, s, n); e += n; s += n;