)]}'
{
  "commit": "26f52bd62a4194579f12e28254d44e28bfa5c291",
  "tree": "3fe73b65d0dd5c024837832ee46547f553924a07",
  "parents": [
    "f90e0620b2500546dbffaf37a1a0c9eba54ced4e"
  ],
  "author": {
    "name": "Abhishek Verma",
    "email": "abhisverma@nvidia.com",
    "time": "Fri Jun 12 11:36:53 2026 +0530"
  },
  "committer": {
    "name": "Abhishek Verma",
    "email": "abhisverma@nvidia.com",
    "time": "Fri Jun 12 11:46:10 2026 +0530"
  },
  "message": "libnsm: bound FPGA diagnostics decode copy by destination size\n\ndecode_get_fpga_diagnostics_settings_resp copied an on-wire data_size\ninto a caller-provided buffer without verifying it fits the destination,\nso a crafted response could overflow the small fixed buffer used by the\nwrite-protect path (the reported PoC). Add a data_size_max capacity\nargument and reject an oversized data_size with NSM_SW_ERROR_LENGTH\nbefore the memcpy; the six wrappers pass sizeof their destination\nstruct, so no caller signature changes. Regression tests updated.\n\nFixes nvbug https://nvbugspro.nvidia.com/bug/6232725\nSigned-off-by: Abhishek Verma \u003cabhisverma@nvidia.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3cfedea0e784cda55dc4b4b3b8a0f33c97a20d73",
      "old_mode": 33188,
      "old_path": "libnsm/device-configuration.c",
      "new_id": "acca8f54a882855e204a1f5c06636639bd816386",
      "new_mode": 33188,
      "new_path": "libnsm/device-configuration.c"
    },
    {
      "type": "modify",
      "old_id": "d0eebacb359796884259c9941cc3866adc938669",
      "old_mode": 33188,
      "old_path": "libnsm/device-configuration.h",
      "new_id": "b0969512a1960c70cb23a23ad8fc11bc5d61d27f",
      "new_mode": 33188,
      "new_path": "libnsm/device-configuration.h"
    },
    {
      "type": "modify",
      "old_id": "84bff72021f1d2cee6874d45c3e59a96f0c74476",
      "old_mode": 33188,
      "old_path": "libnsm/test/libnsm_device_configuration_branch2_test.cpp",
      "new_id": "60d011987ed845ff1d78aaf72b31db2bae7e0f05",
      "new_mode": 33188,
      "new_path": "libnsm/test/libnsm_device_configuration_branch2_test.cpp"
    },
    {
      "type": "modify",
      "old_id": "181b80b2f85ca605a0bd8607eb28ccea09436112",
      "old_mode": 33188,
      "old_path": "libnsm/test/libnsm_device_configuration_branch4_test.cpp",
      "new_id": "7def13bb18e29e1aa29e9800e76738a0b32482bd",
      "new_mode": 33188,
      "new_path": "libnsm/test/libnsm_device_configuration_branch4_test.cpp"
    },
    {
      "type": "modify",
      "old_id": "a653a7ea9439a366ef1ef40e4f15ffd4f48c083d",
      "old_mode": 33188,
      "old_path": "libnsm/test/libnsm_device_configuration_test.cpp",
      "new_id": "ce8941bfc5aa51b743c6daea55e354f6062a0213",
      "new_mode": 33188,
      "new_path": "libnsm/test/libnsm_device_configuration_test.cpp"
    }
  ]
}
