fix(users/Profpatsch/read-http): actually parse ascii
There might be exploits since we parsed the headers as utf8 even though we actually want to interpret them as ASCII. This fixes it, by using the ascii crate. Thanks to @sterni for noticing. Change-Id: I50b6a588d99b34e677cb22968cf0dfd8b331d11c Reviewed-on: https://cl.tvl.fyi/c/depot/+/2457 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
cf3aab3b78
commit
f0579313d3
3 changed files with 12 additions and 3 deletions
|
|
@ -14,6 +14,13 @@ rec {
|
|||
sha256 = "12q71z6ck8wlqrwgi25x3lrryyks9djymswn9b1c6qq0i01jpc1p";
|
||||
};
|
||||
|
||||
ascii = pkgs.buildRustCrate {
|
||||
pname = "ascii";
|
||||
crateName = "ascii";
|
||||
version = "1.0.0";
|
||||
sha256 = "0gam8xsn981wfa40srsniivffjsfz1pg0xnigmczk9k7azb1ks1m";
|
||||
};
|
||||
|
||||
regex-syntax = pkgs.buildRustCrate {
|
||||
pname = "regex-syntax";
|
||||
crateName = "regex-syntax";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue