| From: | 徐閔翊 Jordy Hsu <jordyhsu(at)iii(dot)org(dot)tw> |
|---|---|
| To: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Coding question |
| Date: | 2021-01-08 09:07:00 |
| Message-ID: | SG2PR01MB35021742A1EAF40E823F4F14EEAE0@SG2PR01MB3502.apcprd01.prod.exchangelabs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
[cid:5617ebba-6ae6-4ea2-adf5-0621d6998309](figure1)
[cid:8f86526b-b98f-4fb8-94cb-ddd252d94105](figure2)
Attached file is checkmarx report .
This question is Improper Null Termination issue 475 (figure2).
I look forward to hearing from you.
Thanks.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Kellerer | 2021-01-08 09:36:15 | Suggestion: provide a "TRUNCATE PARTITION" command |
| Previous Message | Karsten Hilbert | 2021-01-08 08:44:09 | Re: How to keep format of views source code as entered? |