任务单 #45547

ruledit: calloc with size 0

开放日期: 2022-09-02 03:40 最后更新: 2022-12-01 23:13

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
2

Details

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

任务单历史 (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 (关闭)
  • 组件 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 Fixed

编辑

Please login to add comment to this ticket » 登录名