Re: [Wireshark-dev] address_to_str_buf not checking available buffer length

2007-01-31 Thread Andrej Mikus
On Mon, 29.Jan.07 12:49:00 -0800, Gerald Combs wrote: > Andrej Mikus wrote: > > > In file to_str.c I notice function address_to_str_buf that takes buf_len > > as argument, but does not use it for IPv4 and IPv6 addresses: > > > Unfortunately, there wasn't a mechanism to ensure that the buffer was

Re: [Wireshark-dev] address_to_str_buf not checking available buffer length

2007-01-29 Thread Gerald Combs
Andrej Mikus wrote: > In file to_str.c I notice function address_to_str_buf that takes buf_len > as argument, but does not use it for IPv4 and IPv6 addresses: > > void > address_to_str_buf(const address *addr, gchar *buf, int buf_len) > { > switch(addr->type){ > case AT_IPv4: > ip_to_str_

[Wireshark-dev] address_to_str_buf not checking available buffer length

2007-01-26 Thread Andrej Mikus
Team, In file to_str.c I notice function address_to_str_buf that takes buf_len as argument, but does not use it for IPv4 and IPv6 addresses: void address_to_str_buf(const address *addr, gchar *buf, int buf_len) { switch(addr->type){ case AT_IPv4: ip_to_str_buf(addr->data, buf); break;