You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/04/24 23:11:57 UTC

[Bug 56452] IPv6 address and log level debug caused crash

https://issues.apache.org/bugzilla/show_bug.cgi?id=56452

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
Agreed.

The use of 'buf' when passed-into inet_ntop4|6 inside jk_dump_sinfo is also not
sane: the final argument should be the length of the buffer available. It is
blindly set to 16 (for IPv4) or 64 (for IPv6) instead of sending the real value
which will be (64 - ps).

Unfortunately, jk_dump_sinfo has no way of knowing the size of the buffer being
passed to it. That could easily be fixed, as jk_dump_sinfo is only used
internally to jk_connect.c (I don't know if anyone bothers using mod_jk as a
library for anything else).

I'm not increasing the severity of this bug to MAJOR because while it's a
buffer-overrun crash, it only happens when in DEBUG mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org