Files
flipper/iOS/FlipperKit/FlipperWebSocket.mm
Octavian Guzu 71751855df Set null-terminator after strncpy
Summary: When the length of `pkcs12.second.c_str()` is equal to `length`, strncpy won't write a null-terminator at the end of the destination string, making the destination unsafe to read and potentially cause an overflow.

Reviewed By: lblasa

Differential Revision: D46934320

fbshipit-source-id: 5e7acd49523b80105bcc47471facd9ff23b8a2b8
2023-07-03 04:41:02 -07:00

4.1 KiB