Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96095 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35524 invoked from network); 22 Sep 2016 09:56:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2016 09:56:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.42 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.220.42 mail-pa0-f42.google.com Received: from [209.85.220.42] ([209.85.220.42:35302] helo=mail-pa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/74-01233-8DAA3E75 for ; Thu, 22 Sep 2016 05:56:40 -0400 Received: by mail-pa0-f42.google.com with SMTP id oz2so27844319pac.2 for ; Thu, 22 Sep 2016 02:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=nm3cqr1DS26BHeloY6BkWA+1DZv58lAxNlf+7rOCd1o=; b=Rk4DW4hxO9KQCMgUqz6PBjX8GdTMFuymTPLVzeh1JNT7kJ9lM0a7lCXTkRugN/wMJK bGgv5vjcF0DMjyGEAu5XrZMNopn8yAViwDx1BTw4NKfSjza06In2KCZGfnbU9iOzLIjK G9+nbxKlNg0n95lbjG7GKNy5IiGddG4TkftZZEzmaVoPUJODJ95RcNcoVeUuWcL62Ibv 3GxrbCYuL9bQoXF14QL67/QtI2syvKkBTEL0r4a7145VAieTgkKrn3FLlI9stvs4zLMA VAvE73rEUSUm1H/5tzZcXwDhmphUX16bgflposg2+hiGQwq5WIWaEUMbE6LYsP7NybqC lqwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=nm3cqr1DS26BHeloY6BkWA+1DZv58lAxNlf+7rOCd1o=; b=Th7tq4ZcZhrWMvlEuJNMhdH7t0+NSswey9MxMJ6OZapg0oFzoWppJ9RJfPcbDRt95/ otZizA2iUJUFL0ce9Tg6Mm0ssktNkYkO5CMUwfly2vl/WhBAXFKWYoG4FQmfhN84FUBG +cPwoBOCOvvRekwTQLinLT+1Xkpd6M6bcj+SYDrqgxGWt6No3ZC2ECJZ4ULOu+GCk1+L j7wfNGVYir7FhIYlUJosWe8nWPLwJctdm06d3okcw7FBYHJoeGhkZ/tkpjOjASXT9ObD UPVsCDUwXmeaAU6YjfGLg2QrhH2Y+JFRqgI7feRPNAnjjVXNu5tdomw6qefQDq0AGO1Q 4Y4A== X-Gm-Message-State: AE9vXwNZB6aplhImCfTIilZMscQxInLqc6iS0WC/F8rT+y0tekGExmv/Mzlbfpr4ZqbQcA== X-Received: by 10.66.5.5 with SMTP id o5mr1848897pao.38.1474538197297; Thu, 22 Sep 2016 02:56:37 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id q14sm2669243pfg.63.2016.09.22.02.56.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 02:56:36 -0700 (PDT) References: <9522ebc9-8d8b-045e-b701-02f1166063e6@gmail.com> <40868951-8BDA-4860-884C-B8252C1839E3@gmail.com> <9ce33625-2737-9933-7dd1-4f7930bccfac@gmail.com> <9b0fcfa7-f4f8-bac3-5e1e-7e974f217a94@gmail.com> To: PHP internals list Message-ID: <5acaa405-8b76-ce00-1380-614f2f83b549@gmail.com> Date: Thu, 22 Sep 2016 10:54:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] HashDoS From: rowan.collins@gmail.com (Rowan Collins) On 22/09/2016 10:48, Jakub Zelenka wrote: > > Nope the point of the Bob's patch is to use graceful handling with > exception that can be easily checked by the json parser for example! See > https://github.com/php/php-src/pull/1706 Ah, I stand corrected, I hadn't seen that version referenced before. Am I right in thinking that the idea here is that if the context is exception-safe it can opt in to a more graceful handling mechanism? And that if not, it will go ahead and bail out as in Niki's patch? If so, seems like a good way forward, assuming the additional complexity isn't too major. Regards, -- Rowan Collins [IMSoP]