<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl, branch v0.2.1-rc2</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=v0.2.1-rc2</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=v0.2.1-rc2'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2024-02-19T23:17:40+00:00</updated>
<entry>
<title>main.c: Force valid cookie on check_length</title>
<updated>2024-02-19T23:17:40+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T23:17:40+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=b7f232366c03dad8afbbb8ed5ba44314e42b13fd'/>
<id>urn:sha1:b7f232366c03dad8afbbb8ed5ba44314e42b13fd</id>
<content type='text'>
Otherwise, a malicious user could send multipart/form-data requests
without a valid cookie.
</content>
</entry>
<entry>
<title>page.c: Use open(2) fdopen(3) and fstat(2)</title>
<updated>2024-02-19T22:35:09+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:20:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=6c3bfa270b1de6cdea0da8e351f92ec65e90c4f0'/>
<id>urn:sha1:6c3bfa270b1de6cdea0da8e351f92ec65e90c4f0</id>
<content type='text'>
Now, the same file descriptor can be reused for all of the operations
above, instead of calling stat(2) and fopen(3) separately.
</content>
</entry>
<entry>
<title>page.c: URL-encode href</title>
<updated>2024-02-19T22:35:09+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:09:58+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=78c8c4dabb62a6669cfd4eca231e39fd7fd4567a'/>
<id>urn:sha1:78c8c4dabb62a6669cfd4eca231e39fd7fd4567a</id>
<content type='text'>
Otherwise, files with special characters, such as '%', could not be
downloaded or previewed.
</content>
</entry>
<entry>
<title>main.c: const-qualify name and dir</title>
<updated>2024-02-19T22:35:08+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:08:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=55008f2f648b2ebb275d04607961d6bd4b9768ec'/>
<id>urn:sha1:55008f2f648b2ebb275d04607961d6bd4b9768ec</id>
<content type='text'>
There was no reason why these should not be const-qualified. It was
probably missed during the implementation.
</content>
</entry>
<entry>
<title>main.c: URL-encode created directories</title>
<updated>2024-02-19T22:35:08+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:07:16+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=1f8aa578a489905ed2d7443cfcdb73a3ff8d48ea'/>
<id>urn:sha1:1f8aa578a489905ed2d7443cfcdb73a3ff8d48ea</id>
<content type='text'>
Otherwise, directories with special characters, such as "%", would not
be accessible when performing the redirection.
</content>
</entry>
<entry>
<title>main.c: Use fstat(2) on move_file</title>
<updated>2024-02-19T22:35:08+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=a578ad6537320e562ce936bf70426ab2820ddaad'/>
<id>urn:sha1:a578ad6537320e562ce936bf70426ab2820ddaad</id>
<content type='text'>
This allows to reuse the same file descriptor to both open(2) and
fstat(2) the file.
</content>
</entry>
<entry>
<title>Bump libweb to 0.3.0</title>
<updated>2024-02-19T22:35:08+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:03:16+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=f6b84b765d6fa4d95aae5501fedca5cd8903e224'/>
<id>urn:sha1:f6b84b765d6fa4d95aae5501fedca5cd8903e224</id>
<content type='text'>
The following commits fix a couple of security issues on libweb.

Because of afe0681c0b26bb64bad55d7e86770f346cfa043e, slcl had to be
updated to set up its struct http_cfg_post.

commit afe0681c0b26bb64bad55d7e86770f346cfa043e
Author: Xavier Del Campo Romero &lt;xavi.dcr@tutanota.com&gt;
Date:   Mon Feb 19 23:00:56 2024 +0100

    Limit maximum multipart/form-data pairs and files

    A malicious user could inject an infinite number of empty files or
    key/value pairs into a request in order to exhaust the device's
    resources.

commit 9d9e0c2979f43297b2ebbf84f14f064f3f9ced0e
Author: Xavier Del Campo Romero &lt;xavi.dcr@tutanota.com&gt;
Date:   Mon Feb 19 22:49:09 2024 +0100

    html.c: Avoid half-init objects on html_node_add_attr

    The previous implementation would leave half-initialised objects if one
    of the calls to strdup(3) failed. Now, n-&gt;attrs is only modified when
    all previous memory allocations were successful.
</content>
</entry>
<entry>
<title>main.c: Add missing relative path check</title>
<updated>2024-02-19T15:59:54+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T15:59:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=0f889b409e20aea188e88b79b73ded992fc6af33'/>
<id>urn:sha1:0f889b409e20aea188e88b79b73ded992fc6af33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CMakeLists.txt: Bump version to 0.2.0</title>
<updated>2024-02-12T22:15:15+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-12T20:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=c198199a8196913b452461bea1a06438d667f1a2'/>
<id>urn:sha1:c198199a8196913b452461bea1a06438d667f1a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump libweb to 0.2.0</title>
<updated>2024-02-12T22:15:14+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-12T20:23:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=69c9f975ba6bd52ec58338dad68d2c7499781761'/>
<id>urn:sha1:69c9f975ba6bd52ec58338dad68d2c7499781761</id>
<content type='text'>
</content>
</entry>
</feed>
