[PATCH] ivi-controller: fixed string copy in controller_screen_screenshot

Natsume, Wataru (ADITJ/SWG) wnatsume at jp.adit-jv.com
Thu Mar 31 07:29:55 EDT 2016


Pushed.
Thank you.

Best Regards,
Wataru Natsume

---
Wataru Natsume / 夏目 亘
Advanced Driver Information Technology
Software Group (ADITJ/SWG)
E-mail: wnatsume at jp.adit-jv.com
Tel: +81-(0)566-61-4551 / Extension 551-43644


-----Original Message-----
From: genivi-ivi-layer-management-bounces at lists.genivi.org [mailto:genivi-ivi-layer-management-bounces at lists.genivi.org] On Behalf Of mateuszx.potrola at intel.com
Sent: Wednesday, March 30, 2016 9:13 PM
To: genivi-ivi-layer-management at lists.genivi.org
Subject: [PATCH] ivi-controller: fixed string copy in controller_screen_screenshot


With earlier implementation memory for NULL byte of l->filename string was not being allocated by malloc (strlen is returning length of string without NULL terminating byte) which may result in some random characters appended in filename string.
Now strdup is begin used for string copy instead of malloc/strcpy.

Signed-off-by: Mateusz Polrola <mateuszx.potrola at intel.com>
---
 weston-ivi-shell/src/ivi-controller-impl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--------------------------------------------------------------
Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


More information about the genivi-ivi-layer-management mailing list