Ticket #45547

ruledit: calloc with size 0

Open Date: 2022-09-02 03:40 Last Update: 2022-12-01 23:13

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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

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
  • Milestone Update from (None) to 3.0.5 (closed)
  • Component Update from (None) to General
Comment

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
  • Component Update from General to Scripting API
2022-11-27 19:57 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
Comment

Separate version for S2_6 attached.

2022-12-01 23:13 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login