zephyr/subsys/net/ip
Jukka Rissanen 5f3e6212af net: utils: Port parsing failure in net_ipaddr_parse()
If trying to parse a string like 192.0.2.2:80/foobar and
setting the length to 12 which means to parse the IP address
and port, the parsing failed because it used one extra character
from the string. This issue was not present if the input string
was terminated after the port number.

Add a test case to catch this problem.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-16 13:51:27 -05:00
..
6lo.c
6lo.h
6lo_private.h
CMakeLists.txt
Kconfig
Kconfig.debug
Kconfig.ipv4
Kconfig.ipv6
Kconfig.mgmt
Kconfig.stack
Kconfig.stats
Kconfig.tcp
canbus_socket.c
canbus_socket.h
connection.c
connection.h
icmp.c
icmpv4.c
icmpv4.h
icmpv6.c
icmpv6.h
igmp.c
igmp.h
ipv4.c
ipv4.h
ipv4_acd.c
ipv4_autoconf.c
ipv4_fragment.c net: ipv4: fragmentation: Drop the packet if fragmentation fails 2024-11-08 11:37:49 -06:00
ipv6.c
ipv6.h
ipv6_fragment.c
ipv6_mld.c
ipv6_nbr.c net: ipv6: fragmentation: Drop the packet if fragmentation fails 2024-11-08 11:37:49 -06:00
ipv6_pe.c
iterables_net_pkt_alloc_stats.ld
nbr.c
nbr.h
net_context.c
net_core.c
net_if.c
net_mgmt.c
net_pkt.c
net_private.h
net_stats.c
net_stats.h
net_tc.c
net_tc_mapping.h
net_timeout.c
packet_socket.c
packet_socket.h
promiscuous.c
route.c
route.h
tcp.c
tcp.h
tcp_internal.h
tcp_private.h
tp.c
tp.h
tp_priv.h
udp.c
udp_internal.h
utils.c net: utils: Port parsing failure in net_ipaddr_parse() 2024-11-16 13:51:27 -05:00