pfctl segfaults when it encounters a "no-rdr" keyword with no previous
line with the "rdr" keyword.

$ echo 'no rdr on lo0 from any to any' | sudo /tmp/pfctl -f -
zsh: 3713 segmentation fault  sudo /tmp/pfctl -f -

  GDB backtrace :
  
Program received signal SIGSEGV, Segmentation fault.
yyparse () at /usr/src/sbin/pfctl/parse.y:2424
2424                                    memcpy(&rdr.rpool.key, $12.key,

(gdb) where
#0  yyparse () at /usr/src/sbin/pfctl/parse.y:2424
#1  0xb54a in parse_rules (input=0x4010a0f4, xpf=0xcfbfc964, opts=0)
    at /usr/src/sbin/pfctl/parse.y:3724
#2  0x3ae7 in pfctl_rules (dev=6, filename=0xcfbfd466 "/tmp/pf.conf", opts=0)
    at /usr/src/sbin/pfctl/pfctl.c:864
#3  0x4d8c in main (argc=3, argv=0xcfbfd354)
    at /usr/src/sbin/pfctl/pfctl.c:1292

  Reproducible with today's -current.
  
-- 
Apprenons le francais grace a l'Internet :
<< je me demande si les pb de base de donnee ne serait pas dues aux core de
supervise. En tout cas, l'heure correspond a pe pres. >>

Reply via email to