<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/html.c, branch v0.9.0.2</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/html.c?h=v0.9.0.2</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/html.c?h=v0.9.0.2'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2011-07-21T14:21:52Z</updated>
<entry>
<title>html.c: avoid out-of-bounds access for url_escape_table</title>
<updated>2011-07-21T14:21:52Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2011-07-21T03:24:54Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=9cae75d040d9102d4b628ba3c828d95d0251f5c0'/>
<id>urn:sha1:9cae75d040d9102d4b628ba3c828d95d0251f5c0</id>
<content type='text'>
This fixes a segfault for me with with -O2 optimization on x86
with gcc (Debian 4.4.5-8) 4.4.5

I can reliably reproduce it with the following parameters
when pointed to the git.git repository:

PATH_INFO='/git-core.git/diff/'
QUERY_STRING='id=2b93bfac0f5bcabbf60f174f4e7bfa9e318e64d5&amp;id2=d6da71a9d16b8cf27f9d8f90692d3625c849cbc8'

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Properly escape ampersands inside HTML attributes</title>
<updated>2011-05-30T21:55:19Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2011-05-24T18:38:40Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=69382320d96232ee8c73e664797da61e733c2427'/>
<id>urn:sha1:69382320d96232ee8c73e664797da61e733c2427</id>
<content type='text'>
Ampersands ("&amp;") appearing inside HTML attributes need to be translated
to "&amp;amp;". Otherwise, invalid XHTML will be generated at various
places, such as at tree views containing links to submodules.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix memory leak in http_parse_querystring().</title>
<updated>2011-05-23T20:58:35Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2011-03-30T23:21:39Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=070e109c1413d28b54eb6123a9fd24ac98897554'/>
<id>urn:sha1:070e109c1413d28b54eb6123a9fd24ac98897554</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix escaping of paths with spaces</title>
<updated>2011-05-23T20:58:06Z</updated>
<author>
<name>Jonathon Mah</name>
<email>me@JonathonMah.com</email>
</author>
<published>2011-04-10T11:10:03Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=74152744f0d56c2d0211728206a218a33df41a5d'/>
<id>urn:sha1:74152744f0d56c2d0211728206a218a33df41a5d</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2011-03-05T13:01:59Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-03-05T13:01:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=1b09cbd303d889ec2636127584d57b7f1b70c25e'/>
<id>urn:sha1:1b09cbd303d889ec2636127584d57b7f1b70c25e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>do not infloop on a query ending in %XY, for invalid hex X or Y</title>
<updated>2011-03-05T12:38:34Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-02-28T11:18:57Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=fc384b16fb9787380746000d3cea2d53fccc548e'/>
<id>urn:sha1:fc384b16fb9787380746000d3cea2d53fccc548e</id>
<content type='text'>
When a query ends in say %gg, (or any invalid hex) e.g.,
http://git.gnome.org/browse/gdlmm/commit/?id=%gg
convert_query_hexchar calls memmove(txt, txt+3, 0), and then returns
txt-1, so the loop in http_parse_querystring never terminates.  The
solution is to make the memmove also copy the trailing NUL.
* html.c (convert_query_hexchar): Fix off-by-one error.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>html.c: use '+' to escape spaces in urls</title>
<updated>2010-11-09T23:22:41Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-11-09T17:15:21Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c2680325f68192368d32f26458fea9cfb50df6e5'/>
<id>urn:sha1:c2680325f68192368d32f26458fea9cfb50df6e5</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>prefer html_raw() to write()</title>
<updated>2010-09-04T18:30:10Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-09-04T18:18:16Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d187b98557d91b874836f286b955ba76ab26fb02'/>
<id>urn:sha1:d187b98557d91b874836f286b955ba76ab26fb02</id>
<content type='text'>
To make the code more consistent, and to not rely on the implementation
of html(), always use html_raw(...) instead of write(htmlfd, ...).

Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2010-08-29T15:40:51Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-08-29T15:40:51Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=6940b23b9e4698ba466a4616e4de77b986560ad3'/>
<id>urn:sha1:6940b23b9e4698ba466a4616e4de77b986560ad3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>html: fix strcpy bug in convert_query_hexchar</title>
<updated>2010-08-29T15:27:40Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-08-28T01:02:27Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=48434780ca62fde84337ea1e797f642de5ca50d5'/>
<id>urn:sha1:48434780ca62fde84337ea1e797f642de5ca50d5</id>
<content type='text'>
The source and destination strings in strcpy() may not overlap.
Instead, use memmove(), which allows overlap.  This fixes test t0104,
where 'url=foo%2bbar/tree' was being parsed improperly.

Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
</content>
</entry>
</feed>
