On 02 Mar 2015 17:10, Masatake YAMATO wrote: > On Sun, 1 Mar 2015 04:05:33 -0500, Mike Frysinger <vap...@gentoo.org> wrote: > > it looks like the logic in socketutils.c is off a bit. maybe some of the > > buffers aren't correct ? the large number marked "static" is a bit > > concerning. > > if i hack inet_parse_response and increase zero_addr by an arbitrary 20 > > bytes, > > the port gets decoded correctly and the test starts passing. > > I'd like to know about your "hack" exactly. > Could you show me it as a diff file?
--- a/socketutils.c +++ b/socketutils.c @@ -64,7 +64,7 @@ inet_parse_response(const char *proto_name, const void *data, int data_len, const unsigned long inode) { const struct inet_diag_msg *diag_msg = data; - static const char zero_addr[sizeof(struct in6_addr)]; + static const char zero_addr[sizeof(struct in6_addr) + 20]; socklen_t addr_size, text_size; if (diag_msg->idiag_inode != inode) -mike
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel