这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@WhiteWLf-dev
Copy link

@WhiteWLf-dev WhiteWLf-dev commented Jan 28, 2025

If we use ./zabbix_get args
(Where args in xxd utility:
00000000: 2d70 7320 2d73 2031 3131 3131 3131 3131  -ps -s 111111111
00000010: 3131 3131 3131 31e8 033a 3b20 2d6b 2003  1111111..:;.-k..), then we got integer signed overflow in signed integer overflow zbx_is_ip4():

{code:java}
ip.c:41:18: runtime error: signed integer overflow: 1111111111 * 10 cannot be represented in type 'int'
#0 0x555555667da0 in zbx_is_ip4 /zabbixnew/zabbix/src/libs/zbxip/ip.c:41:18
#1 0x5555555c534a in zbx_socket_connect /zabbixnew/zabbix/src/libs/zbxcomms/comms.c:524:17
#2 0x5555555c6905 in zbx_socket_create /zabbixnew/zabbix/src/libs/zbxcomms/comms.c:661:17
#3 0x5555555c6833 in zbx_tcp_connect /zabbixnew/zabbix/src/libs/zbxcomms/comms.c:712:9
#4 0x5555555c2a84 in get_value /zabbixnew/zabbix/src/zabbix_get/zabbix_get.c:275:24
#5 0x5555555c1eb0 in main /zabbixnew/zabbix/src/zabbix_get/zabbix_get.c:605:8
{code}

Problem is actual for upstream version. You can accept PR for fix it:
#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant