)]}'
{
  "commit": "b8a0910a8868363bd518362c7a710fc8300005ef",
  "tree": "97e82352a1d04209580457824e349fdfacb09de5",
  "parents": [
    "b4722cedb33a615bb687e172af7872f94c3fcd09"
  ],
  "author": {
    "name": "Pali Rohár",
    "email": "pali.rohar@gmail.com",
    "time": "Tue Apr 08 00:20:45 2025 +0200"
  },
  "committer": {
    "name": "Martin Storsjö",
    "email": "martin@martin.st",
    "time": "Wed Apr 09 14:32:27 2025 +0300"
  },
  "message": "crt: Change mingw-aligned-malloc.c to be compatible with MS CRT functions\n\nMS CRT libraries (UCRT, msvcr70+ and os system msvcrt) for functions\n_aligned_malloc() and _aligned_offset_malloc() allocate the source buffer\nslightly smaller than the mingw-w64 functions in mingw-aligned-malloc.c.\nThis is because the alignment gap can be used for the user data too.\n\nDo exactly same math calculation in the mingw-w64 implementation as is UCRT\ndoing. Same calculation is in msvcr70 and probably also in system msvcrt\nlibrary (at least different _msize() tests confirms it).\n\nThis will allow to call __mingw_aligned_msize() on buffer allocated by\nMS CRT _aligned_malloc() function from msvcrt.dll, msvcr70.dll and\nmsvcrt71.dll CRT libraries. This is very useful because these CRT libraries\ndo not have _aligned_msize() function and hence mingw-w64 could emulate it\nvia __mingw_aligned_msize().\n\nSigned-off-by: Martin Storsjö \u003cmartin@martin.st\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "be07ed6bcfb1be33ab0f40fe82085e5f3bae28c1",
      "old_mode": 33188,
      "old_path": "mingw-w64-crt/misc/mingw-aligned-malloc.c",
      "new_id": "02872c921a1871da939c9d68352ff003c7168928",
      "new_mode": 33188,
      "new_path": "mingw-w64-crt/misc/mingw-aligned-malloc.c"
    }
  ]
}
