)]}'
{
  "commit": "3e38573dd4a3371fe621dc821cb998f8e6de82ac",
  "tree": "9e4c731196cfb010aa28a29616fe9b85301c7743",
  "parents": [
    "b240eab03530f063ef5438497d70a731b19a201e"
  ],
  "author": {
    "name": "Mike Beaton",
    "email": "mjsbeaton@gmail.com",
    "time": "Thu Sep 07 11:34:42 2023 +0800"
  },
  "committer": {
    "name": "Liming Gao",
    "email": "gaoliming@byosoft.com.cn",
    "time": "Mon Sep 11 08:43:01 2023 +0800"
  },
  "message": "MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size\n\nThe immediately preceding call, GetBestLanguage, plus the implementation of\nHiiGetString, which is called immediately afterwards, make it clear that\nBestLanguage is a null-terminated ASCII string, and not just a five byte,\nnon-null terminated buffer.\n\nTherefore AsciiStrLen is one byte too short, meaning that whether the space\nallocated is really sufficient and whether the resultant string is really\nnull-terminated becomes implementation-dependent. Rather than switching to\nAsciiStrSize, we use an explicitly compile-time string length calculation\n(both compile-time and run-time approaches are currently used elsewhere in\nthe codebase for copying static strings).\n\nSigned-off-by: Mike Beaton \u003cmjsbeaton@gmail.com\u003e\nReviewed-by: Liming Gao \u003cgaoliming@byosoft.com.cn\u003e\nReviewed-by: Dandan Bi \u003cdandan.bi@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "96e05d4cf96f1900f758e613a188bf32e5ed88a6",
      "old_mode": 33188,
      "old_path": "MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c",
      "new_id": "6e791783a6b99dc283f263a1ff728f787035e312",
      "new_mode": 33188,
      "new_path": "MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c"
    }
  ]
}
