From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92222C35242 for ; Tue, 11 Feb 2020 20:23:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 695B820708 for ; Tue, 11 Feb 2020 20:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731809AbgBKUXS (ORCPT ); Tue, 11 Feb 2020 15:23:18 -0500 Received: from correo.us.es ([193.147.175.20]:39182 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731076AbgBKUXS (ORCPT ); Tue, 11 Feb 2020 15:23:18 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id EF0C6EBACA for ; Tue, 11 Feb 2020 21:23:16 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id E171ADA702 for ; Tue, 11 Feb 2020 21:23:16 +0100 (CET) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id D70B9DA70F; Tue, 11 Feb 2020 21:23:16 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id E7B5ADA702; Tue, 11 Feb 2020 21:23:14 +0100 (CET) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Tue, 11 Feb 2020 21:23:14 +0100 (CET) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from salvia.here (unknown [90.77.255.23]) (Authenticated sender: pneira@us.es) by entrada.int (Postfix) with ESMTPA id B954342EF9E0; Tue, 11 Feb 2020 21:23:14 +0100 (CET) X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: fasnacht@protonmail.ch Subject: [PATCH nft 0/4] glob and maximum number of includes Date: Tue, 11 Feb 2020 21:23:04 +0100 Message-Id: <20200211202308.90575-1-pablo@netfilter.org> X-Mailer: git-send-email 2.11.0 X-Virus-Scanned: ClamAV using ClamSMTP Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Hi Laurent, This approach maintains an array of stacks per depth. The initial three patches comes as a preparation. The last patch is aiming to fix the issue with glob and the maximum number of includes. Thanks for your detailed feedback and explanations. Pablo Neira Ayuso (4): scanner: call scanner_push_file() after scanner_push_file() scanner: add indesc_file_alloc() helper function scanner: call scanner_push_indesc() after scanner_push_file() scanner: multi-level input file stack for glob include/list.h | 30 ++++++++++++++ include/parser.h | 3 +- src/parser_bison.y | 5 ++- src/scanner.l | 120 +++++++++++++++++++++++++++++++++++++---------------- 4 files changed, 119 insertions(+), 39 deletions(-) -- 2.11.0