Re: What's wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What's wrong
Дата
Msg-id 24209.1049135082@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What's wrong  (ohp@pyrenet.fr)
Ответы Re: What's wrong  (ohp@pyrenet.fr)
Re: What's wrong  (ohp@pyrenet.fr)
Список pgsql-hackers
ohp@pyrenet.fr writes:
> It worked fine in 7.2 but now IFAICS, it never gives the original result
> and moreover, if I run SELECT sql_crypt('xxx','xxx') several times, it
> gives 3 diferent results and loops other those 3 results.

I would've expected it to be unreliable under previous versions too.
AFAICS you aren't taking care to ensure that the inputs to crypt()
are null-terminated.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Changing behavior of BEGIN...sleep...do something...COMMIT
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: SQL/XML examples