Fix overflow at return wchar2char (src/backend/utils/adt/pg_locale.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Fix overflow at return wchar2char (src/backend/utils/adt/pg_locale.c)
Дата
Msg-id CAEudQAq5JFG88GCdgTkwrxRKT+T6RFjtXx8jberaOfAUzNOwdA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix overflow at return wchar2char (src/backend/utils/adt/pg_locale.c)
Список pgsql-hackers
Hi,

1. wchar2char has a mistake when checking the return of WideCharToMultiByte call.
result variable is unsigned, therefore, cannot be less than zero, returning -1 is not an option.

2. strftime or strftime_win32, return cannot be less than zero.

3. If strftime or strftime_win32, fails, why not abort the loop?

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: TDE (Transparent Data Encryption) supported ?
Следующее
От: Amit Langote
Дата:
Сообщение: Re: problem with RETURNING and update row movement