From e3f19848336f9ab9cf96ea5ae670a84289ee5655 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 8 Jul 2016 12:18:59 +0900 Subject: [PATCH] elm quicklaunch binary - fix possible 0 termination issue with strings the input strings for agrs/env could be not 0 terminated tho the sender guarantees it. ensure they are by 0'ing the last byte fix CID 1353607 --- src/bin/elementary/quicklaunch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/elementary/quicklaunch.c b/src/bin/elementary/quicklaunch.c index 0318d96090..4aaaf64c74 100644 --- a/src/bin/elementary/quicklaunch.c +++ b/src/bin/elementary/quicklaunch.c @@ -114,6 +114,7 @@ handle_run(int fd, unsigned long bytes) return; } close(fd); + if (bytes > 0) buf[bytes - 1] = 0; argc = ((unsigned long *)(buf))[0]; envnum = ((unsigned long *)(buf))[1];