diff options
| author | liuxueli <[email protected]> | 2019-07-04 18:35:31 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2019-07-04 18:35:31 +0800 |
| commit | 2f885250960e0a77678866a884602cf2cf86c7df (patch) | |
| tree | beb2382ca3d0241a0ec7836fcc498214232a975c | |
| parent | b11daf0343c917975c50f4ade8c8231b1283749f (diff) | |
修复BUG,当线程数超过32时会存在内存越界的问题v1.0.1
| -rw-r--r-- | src/ntc_app_plug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntc_app_plug.cpp b/src/ntc_app_plug.cpp index 8d39f0b..96d64e6 100644 --- a/src/ntc_app_plug.cpp +++ b/src/ntc_app_plug.cpp @@ -622,7 +622,7 @@ int NTC_APP_PLUG_INIT() } #endif int max_thread_num = get_thread_count(); - g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(32, sizeof(MESA_htable_handle)); + g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(max_thread_num, sizeof(MESA_htable_handle)); args.thread_safe = 0; args.recursive = 0; |
