)]}'
{
  "commit": "e1426e770e7c170627b6178fa9f97a49bf7f0a4c",
  "tree": "f8a716a9a448464aa110cc676e9c6810beebef61",
  "parents": [
    "b9452a85c654312434548a39f9f4a2e1b9aa212f"
  ],
  "author": {
    "name": "Kirill Makurin",
    "email": "maiddaisuki@outlook.com",
    "time": "Tue Jun 16 08:45:20 2026 +0900"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Tue Jun 16 11:35:30 2026 +0800"
  },
  "message": "crt: tests: update t_pow\n\nThis test has a few issues:\n\n1. It calls `atoi`, but does not include stdlib.h.\n\n2. typedef for `pow` is missing `__cdecl`; this would result in compilation\n  error on i386 as all CRT functions have __cdecl calling convention.\n\n3. `set_pow_msvcrt` does not check whether it was able to load `msvcrt.dll` and\n  whether pointer returned by `GetProcAddress` is non-NULL; either could result\n  in memory access violation. Also note that msvcrt.dll is not available on\n  Windows NT 3.1 and Windows 95.\n\nIn order to fix these:\n\n1. Include stdlib.h.\n\n2. Add `__cdecl` to typedef for `pow`.\n\n3. Instead of loading msvcrt.dll with `LoadLibrary`, call `GetModuleHandle` to\n  obtain handle of CRT the test is linked against and check if it is non-NULL.\n  If returned handle is non-NULL, check whether pointer returned by\n  `GetProcAddress` is non-NULL as well.\n\n4. Test CRT\u0027s `pow` only if we successfully obtained its address; otherwise\n  simply skip this subtest.\n\nAdd t_pow to testcases/Makefile.am.\n\nSigned-off-by: Kirill Makurin \u003cmaiddaisuki@outlook.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "86b3b0ce248af93d02d830539d91e8cfe3248732",
      "old_mode": 33188,
      "old_path": "mingw-w64-crt/testcases/Makefile.am",
      "new_id": "a384637dd7382eb97d536729928812e78902a835",
      "new_mode": 33188,
      "new_path": "mingw-w64-crt/testcases/Makefile.am"
    },
    {
      "type": "modify",
      "old_id": "6027fead0f25ca5a03aea602b839e9300fc70ae4",
      "old_mode": 33188,
      "old_path": "mingw-w64-crt/testcases/t_pow.c",
      "new_id": "1bf7aee12c939052d329016e70d2f7ac13355838",
      "new_mode": 33188,
      "new_path": "mingw-w64-crt/testcases/t_pow.c"
    }
  ]
}
