projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ddb02
)
libv4lconver/tinyjpeg: Fix out of bounds array usage
author
Hans de Goede
<hdegoede@redhat.com>
Sat, 7 Apr 2012 14:31:12 +0000
(16:31 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Sat, 7 Apr 2012 14:31:12 +0000
(16:31 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/tinyjpeg.c
patch
|
blob
|
history
diff --git
a/lib/libv4lconvert/tinyjpeg.c
b/lib/libv4lconvert/tinyjpeg.c
index
e308f63
..
967e0be
100644
(file)
--- a/
lib/libv4lconvert/tinyjpeg.c
+++ b/
lib/libv4lconvert/tinyjpeg.c
@@
-2556,7
+2556,7
@@
int tinyjpeg_get_components(struct jdec_private *priv, unsigned char **component
{
int i;
- for (i = 0;
priv->components[i] && i < COMPONENTS
; i++)
+ for (i = 0;
i < COMPONENTS && priv->components[i]
; i++)
components[i] = priv->components[i];
return 0;
}