~ubuntu-branches/debian/lenny/tor/lenny

« back to all changes in this revision

Viewing changes to src/common/util.h

  • Committer: Package Import Robot
  • Author(s): Peter Palfrader
  • Date: 2011-12-15 21:25:18 UTC
  • mfrom: (1.6.1) (6.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20111215212518-4eaqirobd1uhcmxb
Tags: 0.2.1.32-1
New upstream version, fixing a heap overflow bug related to Tor's
SOCKS code (CVE-2011-2778).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include "orconfig.h"
15
15
#include "torint.h"
16
16
#include "compat.h"
 
17
#include "di_ops.h"
17
18
#include <stdio.h>
18
19
#include <stdlib.h>
19
20
 
171
172
int strcmpend(const char *s1, const char *s2) ATTR_PURE ATTR_NONNULL((1,2));
172
173
int strcasecmpend(const char *s1, const char *s2)
173
174
  ATTR_PURE ATTR_NONNULL((1,2));
174
 
int memcmpstart(const void *mem, size_t memlen,
175
 
                const char *prefix) ATTR_PURE;
 
175
int fast_memcmpstart(const void *mem, size_t memlen,
 
176
                     const char *prefix) ATTR_PURE;
176
177
 
177
178
void tor_strstrip(char *s, const char *strip) ATTR_NONNULL((1,2));
178
179
long tor_parse_long(const char *s, int base, long min,