Re: [iptables PATCH 14/23] ebtables: Fix segfault when parsing a rule

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

 



Hi,

On Fri, Jul 27, 2018 at 11:45:16AM +0200, Pablo Neira Ayuso wrote:
> On Fri, Jul 27, 2018 at 12:22:33AM +0200, Phil Sutter wrote:
> > This should happen in ebtables-restore only: If a previous rule
> > contained a standard target, the standard target object is inserted into
> > xtables_targets. Though since that doesn't have a 'parse' callback, the
> > code segfaults. Therefore make the code ignore that special object
> > (which is not an issue since standard targets don't support parameters).
> 
> Hm, I see.
> 
> How can this the standard target get into this list?

IIRC, the code flow is like this:

-> do_commandeb() encounters '-j' parameter
  -> command_jump()
    -> xtables_find_target()
      -> xtables_fully_register_pending_target()

Cheers, Phil
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux