NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/51952: libpcap fault applying filter to unactivated handle



The following reply was made to PR lib/51952; it has been noted by GNATS.

From: bch <brad.harder%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/51952: libpcap fault applying filter to unactivated handle
Date: Sun, 5 Feb 2017 13:24:43 -0800

 This was fixed alternatively upstream by (roughly):
 
 kamloops# diff -bu ./external/bsd/libpcap/dist/gencode.old
 ./external/bsd/libpcap/dist/gencode.c
 kamloops# diff -bu ./external/bsd/libpcap/dist/gencode.old
 ./external/bsd/libpcap/dist/gencode.c
 --- ./external/bsd/libpcap/dist/gencode.old     2017-02-05
 12:34:30.181700021 -0800
 +++ ./external/bsd/libpcap/dist/gencode.c       2017-02-05
 13:13:35.332722415 -0800
 @@ -691,8 +691,7 @@
         if (!p->activated) {
                 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
                     "not-yet-activated pcap_t passed to pcap_compile");
 -               rc = -1;
 -               goto quit;
 +               return -1;
         }
         initchunks(&cstate);
         cstate.no_optimize = 0;
 
 
 
 ref: https://github.com/the-tcpdump-group/libpcap/commit/ada95c9321eab3793d485ca026cda54afca9d541
 
 
 
 On 2/5/17, gnats-admin%netbsd.org@localhost <gnats-admin%netbsd.org@localhost> wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `lib/51952'.
 > The individual assigned to look at your
 > report is: lib-bug-people.
 >
 >>Category:       lib
 >>Responsible:    lib-bug-people
 >>Synopsis:       libpcap will fault if an attempt to apply a filter on
 >> non-activated handle occurs.
 >>Arrival-Date:   Sun Feb 05 20:55:00 +0000 2017
 >
 >
 


Home | Main Index | Thread Index | Old Index