cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: URL parsing

From: David Strauss <david_at_davidstrauss.net>
Date: Sat, 13 Apr 2013 14:00:19 -0700

On Sat, Apr 13, 2013 at 3:12 AM, Steve Holme <steve_holme_at_hotmail.com> wrote:
> Whilst I have 20 odd years' experience as a C/C++ developer would someone
> be so kind to check the four uses of sscanf() in url.c between lines 4381
> and 4402 to see if this is the best / most optimal way of extracting the
> user, password and options?

Are you opposed to code generated using a lexer/parser or a library
like uriparser? It's hard to prove the correctness of sscanf().

I'm new here, but I'm curious if this has been considered or tried.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-13