[PATCH] v4l2: Improve decoding of VIDIOC_QBUF's arg.
Dmitry V. Levin
ldv at altlinux.org
Fri May 22 12:54:31 UTC 2015
On Fri, May 22, 2015 at 09:22:22AM +0200, Philippe De Muyter wrote:
> --- a/v4l2.c
> +++ b/v4l2.c
> @@ -646,6 +646,10 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
> case VIDIOC_DQBUF: {
> struct v4l2_buffer b;
>
> + if (exiting(tcp) && syserror(tcp)) {
> + tprints("}");
> + return 1;
> + }
This introduces a potentially unbalanced curly bracket,
reproducible with ioctl(-1, VIDIOC_DQBUF, 0)
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20150522/1dc58574/attachment.bin>
More information about the Strace-devel
mailing list