diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-16 18:26:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-16 18:26:31 +0000 |
commit | ad45ddfb0754ae52bc372fd4fd4867b140765ef5 (patch) | |
tree | 2d3894b1d574809f1115a682ae08f82171b77692 /src/common/util.h | |
parent | 6e9f1f76f21306d8c4d66af990f11e78f6dc234d (diff) | |
download | tor-ad45ddfb0754ae52bc372fd4fd4867b140765ef5.tar.gz tor-ad45ddfb0754ae52bc372fd4fd4867b140765ef5.zip |
r13788@catbus: nickm | 2007-07-16 14:26:25 -0400
Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing.
svn:r10847
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 68d1333cba..de7245c259 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -155,6 +155,8 @@ void tor_strupper(char *s) ATTR_NONNULL((1)); int tor_strisprint(const char *s) ATTR_PURE ATTR_NONNULL((1)); int tor_strisnonupper(const char *s) ATTR_PURE ATTR_NONNULL((1)); int strcmpstart(const char *s1, const char *s2) ATTR_PURE ATTR_NONNULL((1,2)); +int strcmp_len(const char *s1, const char *s2, size_t len) + ATTR_PURE ATTR_NONNULL((1,2)); int strcasecmpstart(const char *s1, const char *s2) ATTR_PURE ATTR_NONNULL((1,2)); int strcmpend(const char *s1, const char *s2) ATTR_PURE ATTR_NONNULL((1,2)); |