[squid-dev] [PATH] Convert the URL::parse method API to take const URI strings

Amos Jeffries squid3 at treenet.co.nz
Sun Jul 9 20:12:00 UTC 2017


On 09/07/17 10:21, Alex Rousskov wrote:
> On 07/08/2017 10:36 AM, Amos Jeffries wrote:
>> The input buffer is no longer truncated when overly long. All callers
>> have been checked that they handle the bool false return value in ways
>> that do not rely on that truncation.
> 
> That is a useful change, thank you. I cannot check whether any callers
> need truncation, but your confidence ought to be enough in this case.
> 
> 
>> === modified file 'src/store_digest.cc'
> 
>> +    char *url = internalLocalUri("/squid-internal-periodic/", SBuf(StoreDigestFileName));
> 
> If possible, please make "*url" constant.
> 
> 
>> === modified file 'src/urn.cc'
>> -        debugs(52, 3, "urnStart: Bad uri-res URL " << urlres);
>> +    if (!urlres_r) {
>> +        debugs(52, 3, "uri-res URL " << local_urlres);
> 
> Please restore the "bad" qualifier in the debugging message.
> 
> 
> These are all minor polishing touches that do not require another round
> of reviews, of course.
> 
> Alex.
> 

Thank you. Applied to Squid-5 as rev.15238 with above changes.

Amos


More information about the squid-dev mailing list