From owner-freebsd-hackers@freebsd.org Wed Sep 14 10:53:21 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7224FBD9BD7 for ; Wed, 14 Sep 2016 10:53:21 +0000 (UTC) (envelope-from pipfstarrd@openmailbox.org) Received: from smtp1.openmailbox.org (smtp16.openmailbox.org [62.4.1.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39568145E for ; Wed, 14 Sep 2016 10:53:20 +0000 (UTC) (envelope-from pipfstarrd@openmailbox.org) Received: by mail.openmailbox.org (Postfix, from userid 20002) id 1B28D202264; Wed, 14 Sep 2016 12:53:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1473850392; bh=euWi7JueTeqGp8tOI2A2uogUFf+JCrB3rQUpmsJLPVQ=; h=To:From:Subject:Date:From; b=hEj0czvsbIfT6omtbmQd41BG17tLfgiTBQuZe9f28pgXRjroMMqEDcspjsjZTdP8H DnEcnaLkDH5HoHrqf+dZDFOK8goEIePjvzllkobZ31kBF9zozK+wWzD+0lcoA8x5fE C3QKCHmgaEzU9aq8ySg0KZIfSOss+X3IBhvSct0Y= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on h4 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 To: freebsd-hackers@FreeBSD.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1473850391; bh=euWi7JueTeqGp8tOI2A2uogUFf+JCrB3rQUpmsJLPVQ=; h=To:From:Subject:Date:From; b=Gs5KkUAiDJJhBm2E5wUyK79J6D7uqJbgutZy6mMtUng9sQDx7cO9FZ1eaL4JIo0YO Ysmp4Ry/Qe6un8voPAtB4rUlmL8zV/Av3vnQHe6ICffuquZ3cr20jQ8+BsxHeoejql QuwJ/k/QBQZUMTtF5ni127HbmPYzZBNBFvuCILCk= From: twilight Subject: Is replacing alloca(3) where possible a good thing to do? Message-ID: <3fe9ba0e-0089-a59c-a09e-8c6f8b74b6bc@openmailbox.org> Date: Wed, 14 Sep 2016 10:53:24 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 10:53:21 -0000 Hello, I again, in cddl/* alloca(3) is used very intensively for creating dynamic arrays. But, well, it's kinda obsolete and sometimes not safe and portable. Is replacing alloca(3) with dynamic arrays a good thing? Or should everything be left as it is? Thanks in advance. -- Cheers~ PGP key fingerprint: 07B3 2177 3E27 BF41 DC65 CC95 BDA8 88F1 E9F9 CEEF You can retrieve my public key at pgp.mit.edu.