Fix http_parser check for architectures with unsigned chars
http_parser.c has a table named "unhex" that it uses to convert hex characters to their numeric values, e.g. 'F' -> 15. For non-hex characters, the value is -1 but while the table contains int8_t values, the extraction is done using a char. On ARMv8, char is *unsigned*, which means it can't be compared to -1 as this is always false. Comparing to (char)-1 instead will work.master
parent
74d4092ac6
commit
55128ae263
Loading…
Reference in New Issue