This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: libv4lconvert: Error out if source or destination pointers are null
Author:  Gregor Jasny <[email protected]>
Date:    Wed Apr 23 10:07:17 2014 +0200

Detected by Coverity.

Signed-off-by: Gregor Jasny <[email protected]>

 lib/libv4lconvert/se401.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=80a232d911f516e5a1a6582db8dc64b7d293e2d2

diff --git a/lib/libv4lconvert/se401.c b/lib/libv4lconvert/se401.c
index b38ef38..ce5432a 100644
--- a/lib/libv4lconvert/se401.c
+++ b/lib/libv4lconvert/se401.c
@@ -116,6 +116,9 @@ int v4lconvert_se401_to_rgb24(struct v4lconvert_data *data,
        int in, plen, bits, pixels, info;
        int x = 0, total_pixels = 0;
 
+       if (!src || !dest)
+               goto error;
+
        for (in = 0; in + 4 < src_size; in += plen) {
                bits   = src[in + 3] + (src[in + 2] << 8);
                pixels = src[in + 1] + ((src[in + 0] & 0x3f) << 8);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to