)]}'
{
  "commit": "d186e94fa73fc4bc683c3a31657bb1b5f9bcd8e2",
  "tree": "bf2c51acd6388094e66ddbd44199dc39711a895a",
  "parents": [
    "374a3f15db5d7e0922850932dc6e5a113d946f97"
  ],
  "author": {
    "name": "jprat",
    "email": "jprat@google.com",
    "time": "Fri Nov 20 06:58:58 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 06:59:41 2026 -0800"
  },
  "message": "Always scan HTTP/1.x header lines for lone CR and invalid characters in BalsaFrame\n\ngo/balsa-hardening-gfe\n\nBalsaFrame only ran `CheckHeaderLinesForInvalidChars` when the invalid chars level was `kError`, so parsers at `kOff` (such as GFE2 backend responses) never recorded defects or code counts for lone CRs or invalid header characters.\n\nRun the check unconditionally, so both are detected at any level. Enforcement is unchanged: nothing is rejected at `kOff`.\n- Lone CR is now detected at any level. It is still only rejected at `kError`, when `disallow_lone_cr_in_request_headers` is set.\n- Invalid header characters are now detected at any level, recording a new `invalid_header_value_character` protocol defect and an `invalid_header_value_character_detected` code count. They are still only rejected at `kError`, which now also records an `invalid_header_value_character_enforced` code count.\n- At `kOff`, the scan continues past an invalid header character, so a later lone CR is still detected.\n\nThe new defect is logged as `HttpProtocolDefects.invalid_header_value_character` (new field in `gfe_log.proto`). `LogsProtocolErrorsForResponses` in `logging_test` covers the response case.\n\nPiperOrigin-RevId: 1026447913\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4340cacbb6844309189fb85c19902aab8cf9c276",
      "old_mode": 33188,
      "old_path": "quiche/balsa/balsa_frame.cc",
      "new_id": "6a82140fb7b89a2a422252b0003747c867e2fa1e",
      "new_mode": 33188,
      "new_path": "quiche/balsa/balsa_frame.cc"
    },
    {
      "type": "modify",
      "old_id": "99b1e2f3ff8593709831216aaff25e140fd48ac7",
      "old_mode": 33188,
      "old_path": "quiche/balsa/balsa_frame.h",
      "new_id": "ab25019a958224a6f7f7f88d7c0849b021148a19",
      "new_mode": 33188,
      "new_path": "quiche/balsa/balsa_frame.h"
    }
  ]
}
