Commit 5d8f3eac authored by Florent Revest's avatar Florent Revest

ngfd: Avoid a potential buffer overflow detected by GCC 7 in OE rocko

parent ebd6a18d
From 2a1623c8b8b99fcd29acf8f555521f7bbdcd2df2 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Sat, 21 Oct 2017 22:13:54 +0200
Subject: [PATCH] ffmemless: Reserve enough space for sprintf
---
src/plugins/ffmemless/ffmemless.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/ffmemless/ffmemless.c b/src/plugins/ffmemless/ffmemless.c
index d92af61..fd3cac0 100644
--- a/src/plugins/ffmemless/ffmemless.c
+++ b/src/plugins/ffmemless/ffmemless.c
@@ -101,7 +101,7 @@ int ffmemless_evdev_file_search(void)
{
int result, i = 0;
int fp = 1;
- char device_file_name[24];
+ char device_file_name[27];
unsigned long features[4];
/* fail safe stop at 256 devices */
--
2.14.2
...@@ -6,7 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" ...@@ -6,7 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
SRC_URI = "git://git.merproject.org/mer-core/ngfd.git;protocol=https \ SRC_URI = "git://git.merproject.org/mer-core/ngfd.git;protocol=https \
file://ngfd.ini \ file://ngfd.ini \
file://ngfd.service \ file://ngfd.service \
file://0001-haptics-Always-vibrate-on-calendar-and-clock-events.patch" file://0001-haptics-Always-vibrate-on-calendar-and-clock-events.patch \
file://0002-ffmemless-Reserve-enough-space-for-sprintf.patch"
SRCREV = "fbeea2a48bebd3faaac1ee84a144f797ac9006fc" SRCREV = "fbeea2a48bebd3faaac1ee84a144f797ac9006fc"
PR = "r1" PR = "r1"
PV = "+git${SRCPV}" PV = "+git${SRCPV}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment