<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/tor-netdoc/src/err.rs, branch arti-v0.0.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2021-05-05T14:33:10Z</updated>
<entry>
<title>Add a microdesc builder, for testing.</title>
<updated>2021-05-05T14:33:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-05-05T14:33:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=88b3fefa4ed9b7402038cd8b04519b063572a2a3'/>
<id>urn:sha1:88b3fefa4ed9b7402038cd8b04519b063572a2a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enforce (and obey) clippy lints about exhaustive enums, structs.</title>
<updated>2021-04-27T18:17:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-04-27T18:17:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2e3780affb54988bee60ab634a408dffd224cd3a'/>
<id>urn:sha1:2e3780affb54988bee60ab634a408dffd224cd3a</id>
<content type='text'>
These lints force us to declare our exported enums and
exhaustive-looking structs as non-exhaustive (so that we can add to
them in the future without breaking our API) or to explicitly
disable the warning for a given enum/struct (to say that we _intend_
for additions to be a breaking change).
</content>
</entry>
<entry>
<title>Enforce that the periods in a consensus lifetime are nonempty.</title>
<updated>2020-12-04T20:00:06Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-12-04T20:00:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6ddf55f799f33e67bee32839e8e3b048cb45dc28'/>
<id>urn:sha1:6ddf55f799f33e67bee32839e8e3b048cb45dc28</id>
<content type='text'>
To be valid, a lifetime must have valid_after &lt; fresh_until &lt;
valid_until.
</content>
</entry>
<entry>
<title>Mark tor_netdoc::err::Pos as Send and Sync</title>
<updated>2020-11-11T15:00:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-11-11T14:57:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=136c536123a925fd6209fb40e06eb30dbba7fde3'/>
<id>urn:sha1:136c536123a925fd6209fb40e06eb30dbba7fde3</id>
<content type='text'>
I am about 99% sure this is safe: the pointer that this type
contains is never dereferenced, and is only compared to the bounds
of a string later on.
</content>
</entry>
<entry>
<title>Calculate digest correctly when microdesc ends with base64 object.</title>
<updated>2020-10-19T12:42:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-10-19T12:42:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3798891b36158fc551d58aa70b416c10f0b64b96'/>
<id>urn:sha1:3798891b36158fc551d58aa70b416c10f0b64b96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests for some failing cases in mdconsensus</title>
<updated>2020-10-06T18:12:43Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-10-06T18:12:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=02e5380a73ebfecbfded9b2cdb8dece1dbbabd49'/>
<id>urn:sha1:02e5380a73ebfecbfded9b2cdb8dece1dbbabd49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Netdoc: use a more bulletproof pattern to prevent infinite loops</title>
<updated>2020-10-02T14:15:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-10-02T14:15:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=38685d3cc18ebf95e11ba9445725b86e6acc3e84'/>
<id>urn:sha1:38685d3cc18ebf95e11ba9445725b86e6acc3e84</id>
<content type='text'>
Previously our "read a bunch of this kind of document" functions had
a common problem, where they could get into an infinite loop if the
underlying "read this kind of document" function failed without
consuming any tokens.

I _think_ that this error case was unreachable (or else fuzzing
would have found it, right?), but proving that it was unreachable
was a bit fiddly, and I couldn't follow my own arguments about it.

Instead, we just store the position of the reader before we start
reading, and make sure that it has consumed at least some data.  If
it hasn't, then we consume and drop a token before advancing to the
next document.
</content>
</entry>
<entry>
<title>netdoc: rename BadVersion to BadTorVersion for clarity</title>
<updated>2020-10-01T14:23:22Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-10-01T14:23:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e6ba2ac8ed443cf844b63cd7074468e2b748d861'/>
<id>urn:sha1:e6ba2ac8ed443cf844b63cd7074468e2b748d861</id>
<content type='text'>
</content>
</entry>
<entry>
<title>improve errors in authcert.rs</title>
<updated>2020-10-01T14:21:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-10-01T14:21:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5ff859b89d78bc98ca6f660bbb34cbcea00916c1'/>
<id>urn:sha1:5ff859b89d78bc98ca6f660bbb34cbcea00916c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More tests for tokenize.rs, with some bugfixes</title>
<updated>2020-09-30T13:39:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2020-09-30T13:39:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9cab4e0f14942292cfd791f9c1b56260caf58fd4'/>
<id>urn:sha1:9cab4e0f14942292cfd791f9c1b56260caf58fd4</id>
<content type='text'>
</content>
</entry>
</feed>
