gpdb icon indicating copy to clipboard operation
gpdb copied to clipboard

[6X]: backport of 7x gpcloud commit f14dbd7. gpcloud: use memcpy to avoid -Wstringop-truncation

Open reshke opened this issue 3 years ago • 0 comments

I have noticed such a warn while compiling gpcloud for 6X_STABLE. Lets fix this the similar way it is done in master 2 years ago. I have simply cherry-picked f14dbd7e9d492ce36f3cf292f6d5c301e9da2ac4

Original commit msg:

Latest version of GCC detects string truncation and gives warnings.
However here is by design, use memcpy instead to avoid the warning.

Here are some reminders before you submit the pull request

  • [x] Add tests for the change
  • [x] Document changes
  • [x] Communicate in the mailing list if needed
  • [x] Pass make installcheck
  • [x] Review a PR in return to support the community

reshke avatar Aug 25 '22 14:08 reshke