You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is parsing a single byte encoded in hex. Suppose it is %AB. First it looks up the occurrence of A in HEX_CHARS_UPPER and assigns it to a. a - HEX_CHARS_UPPER then means a value of the left nibble (0xA). Do the same for 'B' and finally combine them as a single byte ((0xA << 4) | 0xB).
I am not fully familiar yet with all the design of p11-kit, but this code looks strange:
p11-kit/common/url.c
Line 85 in 17b2edb
It is highlighted by Microsoft
cl.exe
compiler:(which means conversiion from __int64 to unsigned char, possible lost of information
the compiler is right because:
const static char HEX_CHARS_UPPER[] = "0123456789ABCDEF";
Please, what's the idea or purpose of this code ? I see there are some unit tests, but it does not cover this case.
The text was updated successfully, but these errors were encountered: