Обсуждение: sprintf() of char* value, no memory allocation?

Поиск
Список
Период
Сортировка

sprintf() of char* value, no memory allocation?

От
The Hermit Hacker
Дата:
executor/nodeTee.c, line 174?  I can't find anywhere where space was
allocated...?

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



Re: [HACKERS] sprintf() of char* value, no memory allocation?

От
Bruce Momjian
Дата:
> 
> executor/nodeTee.c, line 174?  I can't find anywhere where space was
> allocated...?

Yep.  However, I think Tee may never be used as a node by any query, so
it may not be a problem.  Search the archives.  You may find
someone(Vadim?) saying that Tee is never used.

Still, should be cleaned up.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026