stonedb icon indicating copy to clipboard operation
stonedb copied to clipboard

feature: Use secure function

Open konghaiya opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Use secure function.

Describe the solution you'd like

ex: memcpy ---> memcpy_s ; strcpy ---> strcpy_s.

strcpy_ s、memcpy_ s and other functions with buffer size check can effectively detect memory overflow and find the wrong code. However, if something like strcpy or memcpy goes wrong, you need to look at the code yourself.

Describe alternatives you've considered

Additional context

konghaiya avatar Jun 19 '22 07:06 konghaiya

Does anyone have good ideas on this issue?

RingsC avatar Aug 17 '22 06:08 RingsC