Coding question

Поиск
Список
Период
Сортировка
От 徐閔翊 Jordy Hsu
Тема Coding question
Дата
Msg-id SG2PR01MB35021742A1EAF40E823F4F14EEAE0@SG2PR01MB3502.apcprd01.prod.exchangelabs.com
обсуждение исходный текст
Список pgsql-general
I have two questions about this file postgres-REL_12_2/src/backend/utils/mmgr/mcxt.c

We have used checkmarx to scan this file and we have checked this file already .

It doesn't have Improper Null Termination issue .

But we are just confuse why need to create two same function "palloc" and "palloc0"(figure1) and why don't use function "strndup" to do this action.

(figure1)

(figure2)

Attached file is checkmarx report .
This question is Improper Null Termination issue 475 (figure2).

I look forward to hearing from you.

Thanks.

Вложения

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: How to keep format of views source code as entered?
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Suggestion: provide a "TRUNCATE PARTITION" command