fix code soundness check

motivation: code should be sound!

changes:
* update one case of inappropriate langauge
* update header years check regex
This commit is contained in:
tom doron committed 2022-03-16 20:00:15 -07:00
1 parent ac2a5afce3
commit a89e8ae4e0
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -125,7 +125,7 @@ struct HTTP2FrameDecoder {
// There needs to be at least the padding length byte, so the minimum frame size is 1.
throw InternalError.codecError(code: .protocolError)
}
return .awaitingPaddingLengthByte(
AwaitingPaddingLengthByteParserState(fromAccumulatingFrameHeader: self, frameHeader: header)
)
@@ -363,7 +363,7 @@ struct HTTP2FrameDecoder {
/// In this state if we succesfully move forward at all we'll produce a DATA frame, as
/// well as a new target state.
mutating func process() throws -> ProcessResult? {
// Sanity checking: the padded flag should be gone.
// Making sure the padded flag should be gone.
assert(!self.header.flags.contains(.padded))
let payloadSize = self.remainingByteCount - (self.expectedPadding ?? 0)
+1 -1
View File
@@ -18,7 +18,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function replace_acceptable_years() {
# this needs to replace all acceptable forms with 'YEARS'
sed -e 's/20[12][78901]-20[12][8901]/YEARS/g' -e 's/2019/YEARS/g' -e 's/2020/YEARS/g' -e 's/2021/YEARS/g'
sed -e 's/20[12][78901]-20[12][89012]/YEARS/' -e 's/20[12][89012]/YEARS/'
}
printf "=> Checking linux tests... "