pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Михаил Манерко <asper@tagan.ru>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Pavan Teja <pavan.postgresdba@gmail.com>
Cc: Mike Porter <mike@udel.edu>
Cc: Postgres Bug <pgsql-bugs@postgresql.org>
Subject: Re: crypt function crash on postgresql 9.3.20 and 10
Date: Fri, 2 Feb 2018 17:58:34 +0300
Message-ID: <c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru> (raw)
In-Reply-To: <CAKFQuwZBcDJbe2TTqVq1bu=8fU17S_6gV5vSKmeZ9KwdNP=40A@mail.gmail.com>
References: <5059192d-2ff7-41c2-1070-708cb65f33e9@tagan.ru>
	<nycvar.BFK.7.76.1802020943030.95299@qbp.aff.hqry.rqh>
	<CACh9nsbCQzqt4ZJ7wsau-zS8eeHK+kDdGJQBwN-u3Cvvu6F20Q@mail.gmail.com>
	<CAKFQuwZBcDJbe2TTqVq1bu=8fU17S_6gV5vSKmeZ9KwdNP=40A@mail.gmail.com>

02.02.2018 17:55, David G. Johnston пишет:
> On Fri, Feb 2, 2018 at 7:50 AM, Pavan Teja <pavan.postgresdba@gmail.com <mailto:pavan.postgresdba@gmail.com>>wrote:
>
>
>
>     On Feb 2, 2018 8:15 PM, "Mike Porter" <mike@udel.edu <mailto: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=#
>
>
>         The second argument is the salt, and you have not passed enough bits
>         for the default hash type.
>
>         i=> select crypt( '123', 'aa' );
>              crypt
>         ---------------
>          aamrgyQfDFSHw
>         (1 row)
>
>
>           Hi, 
>                   Yeah Mike what u said is correct, the consistency of bits for generation of salt depends on
>     algorithms like blow fish, md5 etc
>
>
> ​You sure?  Don't have time to show otherwise but the docs suggest what you are doing is validating a store encrypted
> password as opposed to encrypting the provided one.
>
> David J.
> ​

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

-- 
Regards,
Michael A. Manerko

Megalink Company, Engineer
318, Chehova street, Taganrog, Russia, 347932
tel work: +7 8634 431431 (ext 159)
tel mobile: +7 999 6939428
sip: 159@tagan.ru
www.tagan.ru

view thread (13+ messages)  latest in thread

Message-ID: <c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru>
Permalink:  ../c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru/
Also on:    postgresql.org/message-id/c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: asper@tagan.ru, david.g.johnston@gmail.com, pavan.postgresdba@gmail.com, mike@udel.edu
  Subject: Re: crypt function crash on postgresql 9.3.20 and 10
  In-Reply-To: <c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru>
  References: <5059192d-2ff7-41c2-1070-708cb65f33e9@tagan.ru> <nycvar.BFK.7.76.1802020943030.95299@qbp.aff.hqry.rqh> <CACh9nsbCQzqt4ZJ7wsau-zS8eeHK+kDdGJQBwN-u3Cvvu6F20Q@mail.gmail.com> <CAKFQuwZBcDJbe2TTqVq1bu=8fU17S_6gV5vSKmeZ9KwdNP=40A@mail.gmail.com> <c8ae1d9d-afb6-4cfc-324b-641be0beb0f1@tagan.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox