Re: Enhancing Memory Context Statistics Reporting

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Enhancing Memory Context Statistics Reporting
Дата
Msg-id 2a796830-de2d-4030-b480-d673f6cc5d94@eisentraut.org
обсуждение исходный текст
Ответ на Re: Enhancing Memory Context Statistics Reporting  (Rahila Syed <rahilasyed90@gmail.com>)
Ответы Re: Enhancing Memory Context Statistics Reporting
Список pgsql-hackers
On 29.04.25 15:13, Rahila Syed wrote:
> Please find attached a patch with some comments and documentation changes.
> Additionaly, added a missing '\0' termination to "Remaining Totals" string.
> I think this became necessary after we replaced dsa_allocate0()
> with dsa_allocate() is the latest version.

 >              strncpy(nameptr, "Remaining Totals", namelen);
 > +            nameptr[namelen] = '\0';

Looks like a case for strlcpy()?



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