summaryrefslogtreecommitdiffstats
path: root/contrib/diff/src
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2017-09-20 20:48:21 +0000
committerjhb <jhb@FreeBSD.org>2017-09-20 20:48:21 +0000
commit7766f821ffffe122dec15a1b317e0dfa37bbecd9 (patch)
tree379c4936859af42f12b986d44cacf7180183069e /contrib/diff/src
parentc305082eee881564ba97d4eb1724d4017e667678 (diff)
downloadFreeBSD-src-7766f821ffffe122dec15a1b317e0dfa37bbecd9.zip
FreeBSD-src-7766f821ffffe122dec15a1b317e0dfa37bbecd9.tar.gz
MFC 322270: Fix a NULL pointer dereference in mly_user_command().
If mly_user_command fails to allocate a command slot it jumps to an 'out' label used for error handling. The error handling code checks for a data buffer in 'mc->mc_data' to free before checking if 'mc' is NULL. Fix by just returning directly if we fail to allocate a command and only using the 'out' label for subsequent errors when there is actual cleanup to perform. PR: 217747 Reported by: PVS-Studio
Diffstat (limited to 'contrib/diff/src')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud