<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-consdiff/src, branch arti-v2.2.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.2.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.2.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-03-25T15:17:30Z</updated>
<entry>
<title>tor-consdiff: Apply comment suggestion</title>
<updated>2026-03-25T15:17:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-25T15:06:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=55bae2dbd87a741144a78e8c6445ac7e20ab6921'/>
<id>urn:sha1:55bae2dbd87a741144a78e8c6445ac7e20ab6921</id>
<content type='text'>
Co-authored-by: Ian Jackson</content>
</entry>
<entry>
<title>tor-consdiff: Prevent dotlines with WS tail</title>
<updated>2026-03-25T15:17:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-25T08:41:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fe0fb0252b42185de5f4d69a84c7a82493f1de67'/>
<id>urn:sha1:fe0fb0252b42185de5f4d69a84c7a82493f1de67</id>
<content type='text'>
This commit modifies the dotline check to prevent generating lines that
consist of a single dot followed by an arbitrary amount of whitespace,
such as `.`, `. `, `. \t `, but not `. \t foo`.

It also adjusts the tests appropriately.
</content>
</entry>
<entry>
<title>tor-consdiff: Rename `.lno` to `.lno_for_error`</title>
<updated>2026-03-25T15:17:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-23T14:24:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=36033a42a8120a6bd12e4e819e0d29fa90d4d3ba'/>
<id>urn:sha1:36033a42a8120a6bd12e4e819e0d29fa90d4d3ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-consdiff: Prevent dotlines properly</title>
<updated>2026-03-25T15:17:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-23T14:10:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f516884cf05c8881122f70bf58c8bf19b66610f8'/>
<id>urn:sha1:f516884cf05c8881122f70bf58c8bf19b66610f8</id>
<content type='text'>
As pointed out by Diziet, our implementation does not reject dotlines
properly, due to our use of `trim_end()`.  This commit fixes this, by
just checking for `line == ".\n"`.  This is fine because we ensure Unix
line endings now anyways.
</content>
</entry>
<entry>
<title>tor-consdiff: Enforce Unix line endings</title>
<updated>2026-03-25T15:17:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-23T14:09:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=05bbdf523c1d72b10a4e2f4adb47279b9884634e'/>
<id>urn:sha1:05bbdf523c1d72b10a4e2f4adb47279b9884634e</id>
<content type='text'>
This commit changes the consdiff generation to enforce Unix line endings
and reject all other ones, including Windows line endings as well as no
line endings.  In other words, it checks for `\n` while forbidding
`\r\n`.

It also renames the relevant error variant to reflect this change
better.
</content>
</entry>
<entry>
<title>tor-consdiff: Justify our use of peek'ing</title>
<updated>2026-03-25T15:17:29Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-18T10:39:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2244d3c286b4b8e095d394f2b8cd500334f0ce2b'/>
<id>urn:sha1:2244d3c286b4b8e095d394f2b8cd500334f0ce2b</id>
<content type='text'>
This is done to only get the first directory-signature.
</content>
</entry>
<entry>
<title>tor-consdiff: Refactor result composition</title>
<updated>2026-03-25T15:17:29Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-18T10:34:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=de7663cd50e98fbe33fc9c47b493633ef1509963'/>
<id>urn:sha1:de7663cd50e98fbe33fc9c47b493633ef1509963</id>
<content type='text'>
This commit refactors the result composition by simply looping over
every line and checking whether it ends with a newline AND does not
consist of a single dot.
</content>
</entry>
<entry>
<title>tor-consdiff: Use named variants for lno errors</title>
<updated>2026-03-25T15:17:29Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-18T10:28:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d3dacd11794581fc752b7ea53cb82fd14fc41a87'/>
<id>urn:sha1:d3dacd11794581fc752b7ea53cb82fd14fc41a87</id>
<content type='text'>
This commit changes the error variants that contain a line number to a
named variant with a field `lno: usize` to make it semantically clear,
that it is a line number.
</content>
</entry>
<entry>
<title>tor-consdiff: Use derive_more for HunkType's Display</title>
<updated>2026-03-25T15:17:29Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-18T10:25:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c883642cdd87f41d4c3a0b5a8e2e6764591a811d'/>
<id>urn:sha1:c883642cdd87f41d4c3a0b5a8e2e6764591a811d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-consdiff: Use usize::try_from</title>
<updated>2026-03-25T15:17:29Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-03-12T16:27:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dd0f466f2ef738299861308bd639556f94835cce'/>
<id>urn:sha1:dd0f466f2ef738299861308bd639556f94835cce</id>
<content type='text'>
</content>
</entry>
</feed>
