From b6766fc1691fbef69a5c2e2c5e43140f99ae2253 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Tue, 2 May 2023 18:06:00 +0300 Subject: [PATCH] 7.5.7 : fix potential buffer overflow in path Signed-off-by: Ari Archer --- baz | 2 +- loader/loader.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/baz b/baz index f11c47b..7f72a7e 100755 --- a/baz +++ b/baz @@ -2,7 +2,7 @@ [ "$BAZ_DEBUG" ] && set -x -export BAZ_VERSION='7.5.6' +export BAZ_VERSION='7.5.7' export BAZ_DIR="$HOME/.local/share/baz" export BAZ_CONFDIR="$HOME/.config/baz" export BAZ_CONF="$BAZ_CONFDIR/config.env" diff --git a/loader/loader.c b/loader/loader.c index f51b000..ad8939a 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -170,7 +170,7 @@ int main(int argc, const char **argv) { static unsigned char stage_num; static stage_t stage; - static char path[PATH_MAX]; + static char path[PATH_MAX + 1]; static DIR *dp; static struct dirent *ep;