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
cast to unsigned char before ctype calls on untrusted input (KhronosGroup#6740)
ctype functions get a plain `char` that can be negative when the byte is
>= 0x80, which is undefined for everything but unsigned char and EOF:
- text.cpp `spvIsValidIDCharacter` and spirv_target_env.cpp version scan
run over raw assembly text
- the spec-constant and sampled-image option parsers walk an arbitrary
`const char*`
- io.cpp hex tokenizer feeds file bytes straight into
isspace/tolower/isxdigit
cast each argument to unsigned char at the call site. hex_float.h
already does the right thing via istream::peek (returns int) so it is
left alone.
0 commit comments