Use uint8_t instead of char for array indexing in quiche::header_properties.
This is much like cl/446460704 and cl/446449853.
PiperOrigin-RevId: 446536889
diff --git a/quiche/common/balsa/header_properties.cc b/quiche/common/balsa/header_properties.cc
index 415bc4d..6722239 100644
--- a/quiche/common/balsa/header_properties.cc
+++ b/quiche/common/balsa/header_properties.cc
@@ -62,7 +62,7 @@
std::array<bool, 256> buildInvalidCharLookupTable() {
std::array<bool, 256> invalidCharTable;
invalidCharTable.fill(false);
- for (char c : kInvalidHeaderCharList) {
+ for (uint8_t c : kInvalidHeaderCharList) {
invalidCharTable[c] = true;
}
return invalidCharTable;
@@ -76,7 +76,7 @@
return multivalued_headers->contains(header);
}
-bool IsInvalidHeaderChar(char c) {
+bool IsInvalidHeaderChar(uint8_t c) {
static const std::array<bool, 256> invalidCharTable =
buildInvalidCharLookupTable();