Open sigaloid opened 3 years ago
Its possible that fix should be { inp.len() }
not { 0 }
I'll investigate 😦. Though #7 fixes it regardless (limits the loop to 512) it would be better to fix it at the root cause of the issue.
For clarification I believe that the percent check should not return 0 as that causes it to infinitely loop. This was caused by my fix of the other header issue, technically capping it at 512 fixes it but I need to refactor that fix
The issue is https://github.com/sigaloid/vial/blob/5e94552375/src/util.rs#L28 trying to subtract 2 from a number less than zero.
From https://github.com/nic-hartley/httpserv/blob/585c020/src/http.rs#L40