Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehdD1-0005z9-08 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 15:24:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehdCz-0004zk-O6 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 15:24:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehdCz-0004za-C4 for pgsql-bugs@lists.postgresql.org; Fri, 02 Feb 2018 15:24:57 +0000 Received: from mail.acrys.com ([2003:51:a036:100::2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehdCu-0000FH-Fq for pgsql-bugs@postgresql.org; Fri, 02 Feb 2018 15:24:56 +0000 Received: from gaia.acrys.com (int-mail-hub.acrys.com [10.0.2.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.acrys.com (Postfix) with ESMTPS id 610A71BEE07; Fri, 2 Feb 2018 16:24:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.acrys.com 610A71BEE07 Authentication-Results: Acrys.COM; dkim=pass (1024-bit key) header.d=acrys.com header.i=@acrys.com header.b=QEyx6nWW Received: from [10.0.2.73] (nb-pruy.acrys.com [10.0.2.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by gaia.acrys.com (Postfix) with ESMTPS id 47D1662C713D; Fri, 2 Feb 2018 16:24:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 gaia.acrys.com 47D1662C713D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acrys.com; s=default; t=1517585088; bh=eNQATLdKXaXJPwP0HznkIc2rDwcpnY2AthAGsWrTomw=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=QEyx6nWW3taKgmzjtV5Otsf4zgPh+Ga7GAUFwTkz43GnBYt529j+dVFUw3h9ycqns nUyUArCBVu5BoQMnPn/MBtdMUxCh73nGCE8ZP0ssDqy2S6bM73KEHgzRcFS+D8P9U5 t44cAONl0zYYH7e0uvdZ7EIPdpqavK2HZUGMEsMU= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at gaia.acrys.com Subject: Re: crypt function crash on postgresql 9.3.20 and 10 To: =?UTF-8?B?0JzQuNGF0LDQuNC7INCc0LDQvdC10YDQutC+?= , "David G. Johnston" , Pavan Teja Cc: Mike Porter , Postgres Bug References: <5059192d-2ff7-41c2-1070-708cb65f33e9@tagan.ru> From: Rainer Pruy Organization: Acrys Consult GmbH & Co. KG Message-ID: <965ca7cd-1c5c-ebdd-0fb1-1d7dbc1c7038@acrys.com> Disposition-Notification-To: Rainer Pruy Date: Fri, 2 Feb 2018 16:24:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------2811596D676F600D805EF44D" Content-Language: de-DE-1901 X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gaia.acrys.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mail.acrys.com [0.0.0.0]); Fri, 02 Feb 2018 16:24:49 +0100 (CET) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------2811596D676F600D805EF44D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On 02.02.2018 15:58, Михаил Манерко wrote: > 02.02.2018 17:55, David G. Johnston пишет: >> On Fri, Feb 2, 2018 at 7:50 AM, Pavan Teja >> >wrote: >> >> >> >> On Feb 2, 2018 8:15 PM, "Mike Porter" > > wrote: >> >> On Fri, 2 Feb 2018, Михаил Манерко wrote: >> >> If you send an asterisk in the crypt function, the >> function crashes. >> >> >> example >> >> i=# select crypt('123','*'); >> ОШИБКА:  invalid salt >> i=# >> >> >> > function takes the text parameter > Should it fall from a 1-character long text? > > Yes, exactly! This is similar to calling "sqrt(-1)". The parameter is invalid for the function, such thatthe function can not be performed. Rainer --------------2811596D676F600D805EF44D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 02.02.2018 15:58, Михаил Манерко wrote:
02.02.2018 17:55, David G. Johnston пишет:
On Fri, Feb 2, 2018 at 7:50 AM, Pavan Teja <pavan.postgresdba@gmail.com> wrote:


On Feb 2, 2018 8:15 PM, "Mike Porter" <mike@udel.edu> wrote:
On Fri, 2 Feb 2018, Михаил Манерко wrote:

If you send an asterisk in the crypt function, the function crashes.


example

i=# select crypt('123','*');
ОШИБКА:  invalid salt
i=#


function takes the text parameter
Should it fall from a 1-character long text?



Yes, exactly!
This is similar to calling "sqrt(-1)". The parameter is invalid for the function, such thatthe function can not be performed.

Rainer
--------------2811596D676F600D805EF44D--