From: Arthur Ulfeldt <arthur@untangle.com>
To: netfilter-devel@vger.kernel.org
Subject: Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes
Date: Tue, 12 Feb 2008 13:32:11 -0800 (PST) [thread overview]
Message-ID: <14627619.43021202851931588.JavaMail.root@zimbra.untangle.com> (raw)
In-Reply-To: <26584120.42901202851726239.JavaMail.root@zimbra.untangle.com>
Valgrind is reporting uninitialised bytes at the pointer returned by nfq_open().
libnetfilter_queue version 1.1.0.
/* initialize the netfilter queue */
if (( _queue.nfq_h = nfq_open()) == NULL ) return perrlog( "nfq_open" );
/* Unbind any existing queue handlers */
/* In > 2.6.22, EINVAL is returned if the queue handler isn't register. So
we just ignore it. */
if ( nfq_unbind_pf( _queue.nfq_h, PF_INET ) < 0 && errno != EINVAL ) return perrlog( "nfq_unbind_pf" );
==20443== Syscall param ! points to uninitialised byte(s)
==20443== at 0x4030B4E: sendmsg (in /lib/tls/libpthread-0.60.so)
==20443== by 0x28659EF4: (within /usr/lib/libnetfilter_queue.so.1.1.0)
==20443== by 0x2865A167: nfq_unbind_pf (in /usr/lib/libnetfilter_queue.so.1.1.0)
/* Bind queue */
if ( nfq_bind_pf( _queue.nfq_h, PF_INET ) < 0 ) return perrlog( "nfq_bind_pf" );
==20443== Syscall param ! points to uninitialised byte(s)
==20443== at 0x4030B4E: sendmsg (in /lib/tls/libpthread-0.60.so)
==20443== by 0x28659EF4: (within /usr/lib/libnetfilter_queue.so.1.1.0)
==20443== by 0x2865A1FA: nfq_create_queue (in /usr/lib/libnetfilter_queue.so.1.1.0)
/* Bind the socket to a queue */
if (( _queue.nfq_qh = nfq_create_queue( _queue.nfq_h, 0, &_nf_callback, NULL )) == NULL ) {
return perrlog( "nfq_create_queue" );
}
....
/* Cleanup */
/* close the queue handler */
if (( _queue.nfq_qh != NULL ) && ( nfq_destroy_queue( _queue.nfq_qh ) < 0 )) {
perrlog( "nfq_destroy_queue" );
}
==20443== Syscall param <DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD>
<DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD><DD>
<DD><DD><DD><DD><DD><DD> points to uninitialised byte(s)
==20443== at 0x4030B4E: sendmsg (in /lib/tls/libpthread-0.60.so)
==20443== by 0x28659EF4: (within /usr/lib/libnetfilter_queue.so.1.1.0)
==20443== by 0x2865A26E: nfq_destroy_queue (in /usr/lib/libnetfilter_queue.so
.1.1.0)
next parent reply other threads:[~2008-02-12 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <26584120.42901202851726239.JavaMail.root@zimbra.untangle.com>
2008-02-12 21:32 ` Arthur Ulfeldt [this message]
2008-02-13 12:44 ` Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14627619.43021202851931588.JavaMail.root@zimbra.untangle.com \
--to=arthur@untangle.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.