All of lore.kernel.org
 help / color / mirror / Atom feed
* Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes
       [not found] <26584120.42901202851726239.JavaMail.root@zimbra.untangle.com>
@ 2008-02-12 21:32 ` Arthur Ulfeldt
  2008-02-13 12:44   ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Arthur Ulfeldt @ 2008-02-12 21:32 UTC (permalink / raw)
  To: netfilter-devel

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes
  2008-02-12 21:32 ` Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes Arthur Ulfeldt
@ 2008-02-13 12:44   ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2008-02-13 12:44 UTC (permalink / raw)
  To: Arthur Ulfeldt; +Cc: netfilter-devel

Arthur Ulfeldt wrote:
> Valgrind is reporting uninitialised bytes at the pointer returned by nfq_open().
> libnetfilter_queue version 1.1.0.

I'd appreciate a patch for this since I won't be able to fix it along
this week.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-13 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <26584120.42901202851726239.JavaMail.root@zimbra.untangle.com>
2008-02-12 21:32 ` Valgrind warnings in libnetfilter_queue about pointers to uninitialsed bytes Arthur Ulfeldt
2008-02-13 12:44   ` Pablo Neira Ayuso

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.