Re: [PATCH nft] scanner: treat invalid octal strings as strings

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

 



On Thu, Dec 22, 2022 at 11:38:39AM +0100, Pablo Neira Ayuso wrote:
> On Fri, Dec 16, 2022 at 08:27:14PM +0000, Jeremy Sowden wrote:
[...]
> > We get:
> > 
> >   $ sudo ./src/nft -f - <<<'
> >   > table x {
> >   >   chain y {
> >   >     ip saddr 0308 continue comment "error"
> >   >   }
> >   > }
> >   > '
> >   /dev/stdin:4:14-17: Error: Could not resolve hostname: Name or service not known
> >       ip saddr 0308 continue comment "error"
> >                ^^^^
> > 
> > Add a test-case.
> 
> Applied, thanks.
> 
> I am sorry I missed this patch before the release.

Hm. I thought this patch just fixes the parsing of octals.

iptables and iproute seem to support for octals?



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux