From aed4bff2981dd78e6100a9393ed20cc0d7cf544c Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 22 Jul 2022 09:04:44 +0000 Subject: [PATCH] fix use after free in debug path ok jan@ miod@ --- sbin/fsdb/fsdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index 171920988ae..2699dd9ae1a 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsdb.c,v 1.34 2021/01/27 05:03:25 deraadt Exp $ */ +/* $OpenBSD: fsdb.c,v 1.35 2022/07/22 09:04:44 jsg Exp $ */ /* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */ /*- @@ -281,7 +281,7 @@ cmdloop(void) while ((elline = el_gets(elptr, &scratch)) != NULL && scratch != 0) { if (debug) - printf("command `%s'\n", line); + printf("command `%s'\n", elline); history(hist, &hev, H_ENTER, elline); -- 2.20.1