)]}'
{
  "commit": "fc08251b062a494de96158df024e1da5800a1685",
  "tree": "35b463910d87f8fa2a70d32d6f172fd118a445a4",
  "parents": [
    "6c2080b3cc9768d54d674c90e6143e40bfd4cc44"
  ],
  "author": {
    "name": "Peter Tseng",
    "email": "ptseng@squareup.com",
    "time": "Mon Aug 17 14:41:35 2015 -0700"
  },
  "committer": {
    "name": "Adam Langley",
    "email": "agl@golang.org",
    "time": "Sat Aug 29 19:39:25 2015 +0000"
  },
  "message": "openpgp/clearsign: Correctly handle whitespace-only lines\n\nclearsign.Encode currently creates bad signatures for inputs containing\nlines that that consist of only whitespace (gpg --verify and\nclearsign.Decode both agree the signature is bad).\n\nRFC 4880 section 7.1 says trailing whitespace is removed when generating\nthe signature. The previous code correctly handled this for the case of\nnot being at the beginning of the line by buffering the whitespace.\n\nThe previous code had incorrect behavior for the case of being at the\nbeginning of a line. It was only special-casing dashes and newlines,\ndirectly hashing all other characters.\n\nThis happened to work for lines that had leading whitespace followed by\nnon-whitespace characters, since in that case the leading whitespace is\nnot trailing.\n\nHowever, this behavior is incorrect for whitespace-only lines: The\nprevious code would incorrectly add the first whitespace character to\nthe hash, when instead it should have been dropped.\n\nThis commit moves the whitespace check so that it always happens,\nregardless of whether we are at the beginning of a line.\n\nThis adds a few tests to capture the expected behavior. The last three\ntests fail without the included code change.\n\nChange-Id: I17848b8aaad6f7a4cee414d486be236f7edddd0b\nReviewed-on: https://go-review.googlesource.com/13681\nReviewed-by: Adam Langley \u003cagl@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c2aac09958a653534df040e33478ba63120387ae",
      "old_mode": 33188,
      "old_path": "openpgp/clearsign/clearsign.go",
      "new_id": "6454d22c7e30205629d386f2b4bf11840e14753d",
      "new_mode": 33188,
      "new_path": "openpgp/clearsign/clearsign.go"
    },
    {
      "type": "modify",
      "old_id": "51538b9765e46cfbadcefd91253ba0d980d73043",
      "old_mode": 33188,
      "old_path": "openpgp/clearsign/clearsign_test.go",
      "new_id": "406377c6712e417f61c25263848ee7ee60c748f1",
      "new_mode": 33188,
      "new_path": "openpgp/clearsign/clearsign_test.go"
    }
  ]
}
