raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6926d1d338fdead3258d322adf115708a9a1fa3e

commit 6926d1d338fdead3258d322adf115708a9a1fa3e
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Apr 22 12:20:54 2020 +0100

    e sys l2ping - limit devv string scanf size to buffer size
    
    fixes T8673
---
 src/bin/system/e_system_l2ping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/system/e_system_l2ping.c b/src/bin/system/e_system_l2ping.c
index 0900e14d4..7020ea5e3 100644
--- a/src/bin/system/e_system_l2ping.c
+++ b/src/bin/system/e_system_l2ping.c
@@ -199,7 +199,7 @@ _cb_l2ping_ping(void *data EINA_UNUSED, const char *params)
    char dev[1024];
    Action *a;
 
-   if (sscanf(params, "%s %i", dev, &timeout) != 2) return;
+   if (sscanf(params, "%1023s %i", dev, &timeout) != 2) return;
    if (timeout < 1) timeout = 1;
    else if (timeout > (1000 * 600)) timeout = 1000 * 600;
    a = calloc(1, sizeof(Action));

-- 


Reply via email to