| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix potential overflow in xalarm_report_event() | 6 天前 | |
change some msg log level | 4 个月前 | |
!345 Fix the issue of missing security compilation options From: @tong_1001 Reviewed-by: @hubin95 | 10 天前 | |
Fix CTL message length overflow when data exceeds 3 digits When sentryctl set command uses --server_eid and --server_cna, the total data length can exceed 999 bytes (4 digits). However, the CTL message protocol uses a 3-digit length field (zfill(3)), causing both the client encoding and server parsing to fail for data lengths >= 1000. Changes: - Expand CTL message length field width from 3 to 4 digits (CTL_MSG_LEN_LEN 3 -> 4) - Expand CTL message header total length from 6 to 7 bytes (CTL_MSG_HEAD_LEN 6 -> 7, i.e. magic 3 + len 4) - Fix server msg_head_process slice: use CTL_MSG_MAGIC_LEN as start index instead of CTL_MSG_LEN_LEN, which would incorrectly skip the first character of the 4-digit length field Protocol format change: CTL{3-digit len}{data} -> CTL{4-digit len}{data} Fixes: 0ea145bdc7db ("refact sentryctl set cmd") | 3 天前 | |
refector and create makefile for development | 1 年前 | |
compile cpu_sentry plugin | 2 个月前 |