summaryrefslogtreecommitdiffstats
path: root/master/fix-mjpg-streamer-stack-smashing
blob: 9d70159ea4ce65d566ef783bbb300e12175d0fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/feeds/packages/multimedia/mjpg-streamer/patches/998-fix-stack-smashing.patch b/feeds/packages/multimedia/mjpg-streamer/patches/998-fix-stack-smashing.patch
new file mode 100644
index 0000000..a1a2239
--- /dev/null
+++ b/feeds/packages/multimedia/mjpg-streamer/patches/998-fix-stack-smashing.patch
@@ -0,0 +1,13 @@
+Index: mjpg-streamer-r182/plugins/input_uvc/v4l2uvc.c
+===================================================================
+--- a/plugins/input_uvc/v4l2uvc.c
++++ b/plugins/input_uvc/v4l2uvc.c
+@@ -130,7 +130,7 @@ int init_videoIn(struct vdIn *vd, char *
+             return -1;
+         }
+ 
+-        memcpy(&pglobal->in[id].in_formats[pglobal->in[id].formatCount], &fmtdesc, sizeof(input_format));
++        memcpy(&pglobal->in[id].in_formats[pglobal->in[id].formatCount], &fmtdesc, sizeof(struct v4l2_fmtdesc));
+ 
+         if(fmtdesc.pixelformat == format)
+             pglobal->in[id].currentFormat = pglobal->in[id].formatCount;