[Bug-wget] [Bug-Wget] Misc. patches

2014-07-04 Thread Darshit Shah
Hi, I've attached 3 patches to this mail. The first one eliminates some of the error codes in Wget as a first step to cleaning up the error reporting method. The second is siimply fixing indentation issues. The third updates our usage of libpsl according to the latest release version and convert

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-05 Thread Giuseppe Scrivano
Hi Darshit, few comments below: Darshit Shah writes: > Hi, > > I've attached 3 patches to this mail. The first one eliminates some of > the error codes in Wget as a first step to cleaning up the error > reporting method. > > The second is siimply fixing indentation issues. > > The third updates

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-05 Thread Darshit Shah
On Sat, Jul 5, 2014 at 3:45 PM, Giuseppe Scrivano wrote: > Hi Darshit, > > few comments below: > > Darshit Shah writes: > >> Hi, >> >> I've attached 3 patches to this mail. The first one eliminates some of >> the error codes in Wget as a first step to cleaning up the error >> reporting method. >>

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-05 Thread Giuseppe Scrivano
Darshit Shah writes: >>> static bool >>> check_domain_match (const char *cookie_domain, const char *host) >>> @@ -509,6 +519,7 @@ check_domain_match (const char *cookie_domain, const >>> char *host) >>> >>> #ifdef HAVE_LIBPSL >>>DEBUGP (("cdm: 1")); >>> + char * cookie_domain_lower, * ho

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-05 Thread Darshit Shah
I just pushed a slightly amended patch. However, here is what I propose: diff --git a/src/cookies.c b/src/cookies.c index 76301ac..3139671 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -549,6 +549,9 @@ check_domain_match (const char *cookie_domain, const char *host) return true ? (is_accept

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-07 Thread Tim Ruehsen
On Saturday 05 July 2014 16:38:54 Darshit Shah wrote: > I just pushed a slightly amended patch. However, here is what I propose: Where did you push it to ? Git pull on master still has the previous version... Tim

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-07 Thread Darshit Shah
The version on origin/master is the latest version. The slight amendment I made was using this snippet: @@ -519,7 +531,21 @@ check_domain_match (const char *cookie_domain, const char *host) goto no_psl; } - is_acceptable = psl_is_cookie_domain_acceptable (psl, host, cookie_domain); +

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-07 Thread Tim Ruehsen
Hi Darshit, the ./configure script still says 'PSL: Yes' even if i do not have libpsl installed. I already sent you a working code snippet, please don't forget to add it to configure.ac. > return true ? (is_acceptable == 1) : false; Interesting construct ;-) Why not simply return is_a

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-07 Thread Tim Ruehsen
One more comment / idea. The 'cookie_domain' comes from a HTTP Set-Cookie repsonse header and thus is (must be) toASCII() encoded (=puncode). Of course this has to be checked when normalizing the incoming cookie data. A cookie comain having non-ascii characters should simply be dropped. The wh

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-19 Thread Darshit Shah
Does anyone ack this patch? It's a memory leak that I would like to fix. I'll work on Tim's suggestions next. On Sat, Jul 5, 2014 at 4:38 PM, Darshit Shah wrote: > I just pushed a slightly amended patch. However, here is what I propose: > > diff --git a/src/cookies.c b/src/cookies.c > index 7630

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-19 Thread Tim Rühsen
ACK from here. And please also amend return true ? (is_acceptable == 1) : false; to return is_acceptable == 1; Regards, Tim Am Samstag, 19. Juli 2014, 22:05:26 schrieb Darshit Shah: > Does anyone ack this patch? It's a memory leak that I would like to fix. > > I'll work on Tim'

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-20 Thread Darshit Shah
On Mon, Jul 7, 2014 at 8:14 PM, Tim Ruehsen wrote: > One more comment / idea. > > The 'cookie_domain' comes from a HTTP Set-Cookie repsonse header and thus is > (must be) toASCII() encoded (=puncode). Of course this has to be checked when > normalizing the incoming cookie data. A cookie comain hav

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-20 Thread Tim Rühsen
Am Montag, 21. Juli 2014, 00:58:49 schrieb Darshit Shah: > On Mon, Jul 7, 2014 at 8:14 PM, Tim Ruehsen wrote: > > One more comment / idea. > > > > The 'cookie_domain' comes from a HTTP Set-Cookie repsonse header and thus > > is (must be) toASCII() encoded (=puncode). Of course this has to be > >

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-21 Thread Darshit Shah
Hi Tim, As you state, maybe we can wait a little before making all these changes to Wget for lowercase conversions. Meanwhile, please look at the attached patch. It fixes a potential memory leak in Wget, in the case where lowercase conversion of either cookie_domain or host fails but not both. Th

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-21 Thread Giuseppe Scrivano
Darshit Shah writes: > From a44841cbe2abe712de84d7413c31fc14b44225a7 Mon Sep 17 00:00:00 2001 > From: Darshit Shah > Date: Mon, 21 Jul 2014 13:25:54 +0530 > Subject: [PATCH] Fix potential memory leak and libpsl configure > > --- > ChangeLog | 4 > configure.ac | 16 +--- >

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-22 Thread Tim Rühsen
Am Montag, 21. Juli 2014, 15:35:10 schrieb Giuseppe Scrivano: > Darshit Shah writes: > > From a44841cbe2abe712de84d7413c31fc14b44225a7 Mon Sep 17 00:00:00 2001 > > From: Darshit Shah > > Date: Mon, 21 Jul 2014 13:25:54 +0530 > > Subject: [PATCH] Fix potential memory leak and libpsl configure > >

Re: [Bug-wget] [Bug-Wget] Misc. patches

2014-07-22 Thread Darshit Shah
It was in fact broken. Completely my fault. I've pushed another patch fixing it. — Thanking you, Darshit Shah Sent from mobile. Please excuse any errors. On Wed, Jul 23, 2014 at 3:37 AM, Tim Rühsen wrote: > Am Montag, 21. Juli 2014, 15:35:10 schrieb Giuseppe Scrivano: >> Darshit Shah writes: