Oops in snprintf.c

Поиск
Список
Период
Сортировка
Искать
От
Taral
Тема
Oops in snprintf.c
Дата
Msg-id
000401bdf238$1a967400$3b291f0a@taral
Список
Дерево обсуждения
Oops in snprintf.c "Taral" <taral@mail.utexas.edu>
Re: [HACKERS] Oops in snprintf.c Bruce Momjian <maillist@candle.pha.pa.us>
I think I mentioned this before, but no-one fixed it... The variable 'value'
is being assigned a long_long when %ll is being used, but value is only a
'long'... Don'tcha wish there were type-checking for va_arg?

Enjoy.

Taral

*** ./backend/port/snprintf.c.orig      Wed Oct  7 17:15:04 1998
--- ./backend/port/snprintf.c   Wed Oct  7 17:16:07 1998
***************
*** 130,136 ****
--- 130,140 ----
  dopr(char *buffer, const char *format,...)
  {
        int                     ch;
+ #ifdef HAVE_LONG_INT_64
+       long_long       value;
+ #else
        long            value;
+ #endif
        int                     longflag = 0;
        int                     longlongflag = 0;
        int                     pointflag = 0;

В списке pgsql-hackers по дате отправления
От: David Hartwig
Дата:
От: Bruce Momjian
Дата:
FAQ