openwrt / uhttpd

[MIRROR] Tiny HTTP server
https://git.openwrt.org/?p=project/uhttpd.git;
9 stars 6 forks source link

client: perform strict chunk size parsing #4

Open jow- opened 3 months ago

jow- commented 3 months ago
kenballus commented 3 months ago

Consider the case in which the chunk size is just \t; some-junk. Then, we break out of the first while loop, and the chunk-ext passes, and the chunk size counts as 0 even though it's invalid.

kenballus commented 3 months ago

Also, chunk-extensions do have a grammar that it may be worth considering enforcing.