tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.52k stars 2.44k forks source link

CryptoPkg: Fix strncpy for BaseCryptLibMbedTls #5773

Closed Wenxing-hou closed 2 months ago

Wenxing-hou commented 2 months ago

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2817

Because the change for strncpy, add the strncpy implementation for BaseCryptLibMbedTls.

Description

How This Was Tested

From PR: https://github.com/tianocore/edk2/pull/5734 strcpy fix was tested after it was found with OVMF + GDB while testing HTTPS boot. In this test case the first HTTPS boot always failed, with the fix of strcpy the boot is successful on the first try.

Integration Instructions

NA