Re: [PATCH v2 0/1] MR7363: http.sys: Avoid crashes in complete_irp() if http header value is space
20 Feb
2025
20 Feb
'25
1 p.m.
You are right. `while (p > *value && isspace(p) --p;` will lost a character of the value, such as `{'F', 'r', 'o', 'm', ' ', ' ', '\r', ' ', 'v', '\r', '\0'}`. This is a test string with value_len less than 0, `{'F', 'r', 'o', 'm', ' ', ' ', '\r', ' ', '\r', '\n', '\0'}` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7363#note_95338
304
Age (days ago)
304
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wei Xie (@wayne)