SHA256
1
0
forked from pool/v4l-utils
v4l-utils/bufferoverflowstrncat.patch

12 lines
383 B
Diff

--- lib/libdvbv5/descriptors.c.orig 2014-01-13 21:51:46.000000000 +0200
+++ lib/libdvbv5/descriptors.c 2014-06-04 21:49:02.691930747 +0300
@@ -1007,7 +1007,7 @@
{
char t[4];
snprintf (t, sizeof(t), "%02x ", (unsigned int) data[i]);
- strncat (hex, t, sizeof(hex));
+ strncat (hex, t, sizeof(hex) - 1);
if (data[i] > 31 && data[i] < 128 )
ascii[j] = data[i];
else