nft: crash in describe?
Greetings.
I'm seeing a crash here in nft:
(ask it to describe something like flags, works fine)
% nft describe tcp flags
payload expression, datatype tcp_flag (TCP flag) (basetype bitmask, integer), 8 bits
pre-defined symbolic constants:
fin 0x01
syn 0x02
rst 0x04
psh 0x08
ack 0x10
urg 0x20
ecn 0x40
cwr 0x80(pass anything invalid and boom):
% nft describe tcp foobar
value expression, datatype inet_proto (Internet protocol) (basetype
integer), 8 bits [1] 2028 segmentation fault (core dumped) nft
describe tcp foobar
0x0000000000406a84 in handle_free ()
(gdb) where
#0 0x0000000000406a84 in handle_free () #1 0x0000000000407822 in cmd_free () #2 0x000000000041a3d1 in nft_parse () #3 0x0000000000405e40 in nft_run () #4 0x0000000000405a98 in main ()
Happy to gather more info if it will help...
kevin