From: jsg Date: Fri, 22 Jul 2022 09:04:44 +0000 (+0000) Subject: fix use after free in debug path X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aed4bff2981dd78e6100a9393ed20cc0d7cf544c;p=openbsd fix use after free in debug path ok jan@ miod@ --- 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);