From ab0da3948876149ced5d014fbb6279159df0b29b Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 1 Jun 2017 14:18:01 +0200 Subject: [PATCH] enlarge stack buffer a bit to satisfy size constraints and potentiall sprintf overflow (GCC7) --- libgphoto2_port/vusb/vcamera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c index a759ae83b5..bd7c60a7e0 100644 --- a/libgphoto2_port/vusb/vcamera.c +++ b/libgphoto2_port/vusb/vcamera.c @@ -1093,7 +1093,7 @@ static int ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; static int capcnt = 98; - char buf[9]; + char buf[10]; CHECK_SEQUENCE_NUMBER(); CHECK_SESSION(); @@ -1432,7 +1432,7 @@ ptp_vusb_write(vcamera *cam, ptpcontainer *ptp) { switch (ptp->params[0]) { case 0: {/* add a new image after 1 second */ struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; - char buf[9]; + char buf[10]; cur = first_dirent; while (cur) {