待辦事項 #45547

ruledit: calloc with size 0

啟用日期: 2022-09-02 03:40 最後更新: 2022-12-01 23:13

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

Starting (up to ruleset loading) ruledit with --debug verbose

4: Warning: calloc with size 0 at line 222 of ../../../../src/common/scriptcore/luascript_signal.c
4: Warning: calloc with size 0 at line 222 of ../../../../src/common/scriptcore/luascript_signal.c
4: Warning: calloc with size 0 at line 136 of ../../../../src/common/scriptcore/luascript_func.c

Ticket History (3/7 Histories)

2022-09-02 03:40 Updated by: cazfi
  • New Ticket "ruledit: calloc with size 0" created
2022-11-26 19:56 Updated by: cazfi
  • 里程碑 Update from (無) to 3.0.5 (closed)
  • 元件 Update from (無) to General
評語

This is not only about ruledit. It happens with normal server too, but is easily lost to the verbose log level spam.

We have signals with zero parameters, and a function with zero returns, but the registration functions are not prepared for that.

All branches affected, including S2_6.

2022-11-27 10:24 Updated by: cazfi
  • 元件 Update from General to Scripting API
2022-11-27 19:57 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
評語

Separate version for S2_6 attached.

2022-12-01 23:13 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入