~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to lib/strtoofft.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-12 15:04:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051212150452-2ymlra67b2p7kjyy
Tags: 7.15.1-1ubuntu1
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
(CVE-2005-4077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: strtoofft.c,v 1.7 2004/10/10 03:28:51 bagder Exp $
 
21
 * $Id: strtoofft.c,v 1.8 2005/08/11 20:42:02 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
25
25
#include "strtoofft.h"
26
26
 
 
27
/*
 
28
 * NOTE:
 
29
 *
 
30
 * In the ISO C standard (IEEE Std 1003.1), there is a strtoimax() function we
 
31
 * could use in case strtoll() doesn't exist...  See
 
32
 * http://www.opengroup.org/onlinepubs/009695399/functions/strtoimax.html
 
33
 */
 
34
 
27
35
#ifdef NEED_CURL_STRTOLL
28
36
#include <stdlib.h>
29
37
#include <ctype.h>