Re: [PATCH] Tools: lib: string: Fix isspace() parameter to avoid undefined behavior

2021-03-19 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 19, 2021 at 09:14:15AM +0900, hyunji-Hong escreveu: > isspace() could be vulnerable in terms of unpredictable results. So, the > parameter of the isspace() should be cast with 'unsigned int'. We found out > that information through these sites. (Microsoft, Stack Overflow) > url: [http

[PATCH] Tools: lib: string: Fix isspace() parameter to avoid undefined behavior

2021-03-18 Thread hyunji-Hong
isspace() could be vulnerable in terms of unpredictable results. So, the parameter of the isspace() should be cast with 'unsigned int'. We found out that information through these sites. (Microsoft, Stack Overflow) url: [https://docs.microsoft.com/en-us/cpp/code-quality/c6328?view=msvc-160] url: