Re: [PATCH] Fix missing argument handling in psql getopt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Fix missing argument handling in psql getopt
Дата
Msg-id 14042.1566745352@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
Ответы Re: [PATCH] Fix missing argument handling in psql getopt
Список pgsql-hackers
Quentin Rameau <quinq@fifth.space> writes:
> When passing an argument option with a missing argument, strcmp would
> be called with the argv terminating NULL.

Um ... so how would control get there with optind too large?
What test case/platform are you considering?

(There really shouldn't be *any* case where getopt advances
optind past argc, imo.)

            regards, tom lane



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