[patch] For memory access error when calling _stp_sockaddr_str with addrlen set to 0

Frank Ch. Eigler fche@redhat.com
Wed Sep 5 22:49:00 GMT 2007


"Zhaolei" <zhaolei@cn.fujitsu.com> writes:

> I found a memory access error in aux_syscall.stp's _stp_sockaddr_str
> function.

Thanks.

> [...]  Also, I think the buf's length should be considered when
> using it.  If no objection, I will commit the following patch:

Looks good, except that I suggest using sizeof()-based expressions
instead of literal numbers for the length comparisons, if possible.


- FChE



More information about the Systemtap mailing list