Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: do not allow c...



details:   https://anonhg.NetBSD.org/src/rev/b663983cfdb6
branches:  trunk
changeset: 959320:b663983cfdb6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 07 20:32:25 2021 +0000

description:
tests/libcurses: do not allow control characters in paths

diffstat:

 tests/lib/libcurses/director/testlang_conf.l |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 88e4394f75cb -r b663983cfdb6 tests/lib/libcurses/director/testlang_conf.l
--- a/tests/lib/libcurses/director/testlang_conf.l      Sun Feb 07 20:27:40 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_conf.l      Sun Feb 07 20:32:25 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_conf.l,v 1.14 2021/02/07 20:27:40 rillig Exp $        */
+/*     $NetBSD: testlang_conf.l,v 1.15 2021/02/07 20:32:25 rillig Exp $        */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -137,7 +137,7 @@
 HEX            0[xX][0-9a-zA-Z]+
 STRING         [0-9a-z!#-&(-^ \t%._\\]+
 numeric                [-0-9]+
-PCHAR           (\\.|[^ \t\n])
+PCHAR           (\\.|[!-~])
 ASSIGN         assign
 CALL2          call2
 CALL3          call3



Home | Main Index | Thread Index | Old Index