)]}'
{
  "commit": "1de5385963966d32d54d7efdfd04bd1df1835e51",
  "tree": "c3c7b7835c25983940878df9edc8caffbc306352",
  "parents": [
    "3a5f02b064f40042c19cc8796f10f2784fd16758"
  ],
  "author": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Mon Nov 16 12:32:58 2026 -0500"
  },
  "committer": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Mon Nov 16 12:32:58 2026 -0500"
  },
  "message": "tools: escape C1 controls and malformed UTF-8 in jwt-verify output\n\njwt-verify showed a byte below 0x20 or DEL from a token as \\xNN on its\n[TOK] and [BAD] lines, but every byte from 0x80 up as it was. It printed\nthe --verbose dump of the header and payload with no escaping at all:\ninside a string, Jansson and json-c escape only the controls below 0x20.\n\nMove the escaping into write_escaped() in jwt-util.h and widen it. A\nbyte below 0x20, DEL, both bytes of a C1 control (U+0080 to U+009F,\nencoded C2 80 to C2 9F) and each byte that does not start well-formed\nUTF-8 (RFC 3629) are shown as \\xNN. Printable ASCII and all other\nwell-formed UTF-8 are shown as they are, so non-ASCII text in claims\nstays readable. The [TOK] and [BAD] lines use it, and so does the\n--verbose dump when it is printed rather than given to a --print\ncommand, keeping its line breaks and indentation. jwt-generate\u0027s dump\ngoes through the same code. A --print command still gets the JSON as\nit is.\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\nSigned-off-by: Ben Collins \u003cbcollins@libjwt.io\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9332c82a02d584f6b16c768c648945e0f7b67253",
      "old_mode": 33261,
      "old_path": "tests/jwt-cli.bats",
      "new_id": "225bebf50ea41c87cd31612c7f22484034293c95",
      "new_mode": 33261,
      "new_path": "tests/jwt-cli.bats"
    },
    {
      "type": "modify",
      "old_id": "16682830052556d3cad01c1ac470bb084f3324c1",
      "old_mode": 33188,
      "old_path": "tools/jwt-util.h",
      "new_id": "1c4ef40218685276205dd55b076684582a42ab31",
      "new_mode": 33188,
      "new_path": "tools/jwt-util.h"
    },
    {
      "type": "modify",
      "old_id": "8d7324a99e7def453f8694ca5982c1b4e0e62af9",
      "old_mode": 33188,
      "old_path": "tools/jwt-verify.c",
      "new_id": "a5e8cb1815e322d56f83260972d4251294652639",
      "new_mode": 33188,
      "new_path": "tools/jwt-verify.c"
    }
  ]
}
