\r
Tested on Mac OS X.\r
\r
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
//\r
// Associate our interface with this BPF file descriptor.\r
//\r
- AsciiStrCpy (BoundIf.ifr_name, Private->InterfaceName);\r
+ AsciiStrCpyS (BoundIf.ifr_name, sizeof (BoundIf.ifr_name), Private->InterfaceName);\r
if (ioctl (Private->BpfFd, BIOCSETIF, &BoundIf) < 0) {\r
goto DeviceErrorExit;\r
}\r
goto Exit;\r
}\r
\r
- UnicodeStrToAsciiStr (Private->Thunk->ConfigString, Private->InterfaceName);\r
+ UnicodeStrToAsciiStrS (\r
+ Private->Thunk->ConfigString,\r
+ Private->InterfaceName,\r
+ StrSize (Private->Thunk->ConfigString)\r
+ );\r
\r
Status = EFI_NOT_FOUND;\r
If = IfAddrs;\r