From: Jia-Ju Bai <baijiaju1990@gmail.com>
To: awalls@md.metrocast.net, mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [BUG] media: pci: cx18: a possible null-pointer dereference in cx18_vapi()
Date: Mon, 29 Jul 2019 17:40:48 +0800 [thread overview]
Message-ID: <d49c3c7d-1f2c-6eae-414e-b8e8bc813ebc@gmail.com> (raw)
In cx18_vapi(), when cx is NULL, it is still used on line 833:
CX18_ERR("cx == NULL (cmd=%x)\n", cmd);
v4l2_err(&cx->v4l2_dev, fmt , ## args)
Thus, a possible null-pointer dereference may occur.
This bug is found by a static analysis tool STCheck written by us.
I do not know how to correctly fix this bug, so I only report it.
Best wishes,
Jia-Ju Bai
reply other threads:[~2019-07-29 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d49c3c7d-1f2c-6eae-414e-b8e8bc813ebc@gmail.com \
--to=baijiaju1990@gmail.com \
--cc=awalls@md.metrocast.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®