mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r12986@catbus: nickm | 2007-05-25 20:07:08 -0400
Try even harder not to dereference the first character after an mmap(). [Bug reported by lodger] svn:r10346
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
Changes in version 0.1.2.15 - 2007-0?-??
|
||||
o Fixes:
|
||||
- Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
|
||||
- Try even harder not to dereference the first character after
|
||||
an mmap(). (Bug reported by lodger)
|
||||
|
||||
|
||||
Changes in version 0.1.2.14 - 2007-05-25
|
||||
|
||||
@@ -676,6 +676,11 @@ router_parse_list_from_string(const char **s, const char *eos,
|
||||
cp = end = eos;
|
||||
}
|
||||
|
||||
/* Start by backing up a character. If we were at eos, we'll now point
|
||||
* to a valid character. If we were at a \nrouter or \ndirectory-signature,
|
||||
* we'll back up to before the \n. */
|
||||
--cp;
|
||||
|
||||
while (cp > *s && (!*cp || TOR_ISSPACE(*cp)))
|
||||
--cp;
|
||||
/* cp now points to the last non-space character in this descriptor. */
|
||||
|
||||
Reference in New Issue
Block a user