]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/Include/CrtLibSupport.h
CryptoPkg/Crt: turn strchr() into a function (CVE-2019-14553)
[mirror_edk2.git] / CryptoPkg / Library / Include / CrtLibSupport.h
index 5806f50f7485101dad8bb9da18306aa8747b3928..b90da20ff7e79e4b43b8434fd67df7cf4d6f49be 100644 (file)
@@ -147,6 +147,7 @@ int            isupper     (int);
 int            tolower     (int);\r
 int            strcmp      (const char *, const char *);\r
 int            strncasecmp (const char *, const char *, size_t);\r
+char           *strchr     (const char *, int);\r
 char           *strrchr    (const char *, int);\r
 unsigned long  strtoul     (const char *, char **, int);\r
 long           strtol      (const char *, char **, int);\r
@@ -188,7 +189,6 @@ void           abort       (void);
 #define strcpy(strDest,strSource)         AsciiStrCpyS(strDest,MAX_STRING_SIZE,strSource)\r
 #define strncpy(strDest,strSource,count)  AsciiStrnCpyS(strDest,MAX_STRING_SIZE,strSource,(UINTN)count)\r
 #define strcat(strDest,strSource)         AsciiStrCatS(strDest,MAX_STRING_SIZE,strSource)\r
-#define strchr(str,ch)                    ScanMem8((VOID *)(str),AsciiStrSize(str),(UINT8)ch)\r
 #define strncmp(string1,string2,count)    (int)(AsciiStrnCmp(string1,string2,(UINTN)(count)))\r
 #define strcasecmp(str1,str2)             (int)AsciiStriCmp(str1,str2)\r
 #define sprintf(buf,...)                  AsciiSPrint(buf,MAX_STRING_SIZE,__VA_ARGS__)\r