<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glib.git/tests, branch pgriffis/wip/resolver-https</title>
<subtitle>gitlab.gnome.org: GNOME/glib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/'/>
<entry>
<title>Move tests/env-test.c into glib/tests/environment.c</title>
<updated>2021-12-16T15:32:26+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-16T15:27:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=20c8ea1bc651bc4b79d39b80d42b468f6e7a2dc8'/>
<id>20c8ea1bc651bc4b79d39b80d42b468f6e7a2dc8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Moving tests/dirname-test.c to glib/tests/fileutils.c</title>
<updated>2021-12-16T10:41:13+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-16T00:16:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=9f760a7cc1ff787ba79ba0dd80bae12b70f12e9b'/>
<id>9f760a7cc1ff787ba79ba0dd80bae12b70f12e9b</id>
<content type='text'>
Helps issue #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Helps issue #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>Merging tests/child-test.c into glib/tests/spawn-multithreaded.c</title>
<updated>2021-12-15T22:12:59+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-03T15:59:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=241b9f41b412bd2fed20fde48a1035b0affbf467'/>
<id>241b9f41b412bd2fed20fde48a1035b0affbf467</id>
<content type='text'>
Helps issue #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Helps issue #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'datetime_tests' into 'main'</title>
<updated>2021-12-14T15:25:40+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2021-12-14T15:25:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=2c07c178404af2e16b7dc94a3ab5896de5b0ebb0'/>
<id>2c07c178404af2e16b7dc94a3ab5896de5b0ebb0</id>
<content type='text'>
Removing unnecessary test on gdatetime.c

See merge request GNOME/glib!2393</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing unnecessary test on gdatetime.c

See merge request GNOME/glib!2393</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'cxx-test' into 'main'</title>
<updated>2021-12-14T15:23:16+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2021-12-14T15:23:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=f493d3fd244f93a595fcb5b3e888eb9da083206b'/>
<id>f493d3fd244f93a595fcb5b3e888eb9da083206b</id>
<content type='text'>
Removing redundant cxx test tests/cxx-test.cpp

See merge request GNOME/glib!2391</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing redundant cxx test tests/cxx-test.cpp

See merge request GNOME/glib!2391</pre>
</div>
</content>
</entry>
<entry>
<title>Distribute cxx test tests/cxx-test.cpp to each module tests directory</title>
<updated>2021-12-14T13:43:03+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-13T15:06:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=ae345e56c25e5b7452e3ce7c94611e7a71911047'/>
<id>ae345e56c25e5b7452e3ce7c94611e7a71911047</id>
<content type='text'>
tests/cxx-test.cpp is removed and splitted into gio/tests/cxx.cpp,
gmodule/tests/cxx.cpp and gobject/tests/cxx.cpp.

Helps issue #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests/cxx-test.cpp is removed and splitted into gio/tests/cxx.cpp,
gmodule/tests/cxx.cpp and gobject/tests/cxx.cpp.

Helps issue #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>Removing unnecessary test on gdatetime.c</title>
<updated>2021-12-14T12:46:06+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-14T12:44:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=6a17b114b6361666ce3d740caabbf99723fe0f43'/>
<id>6a17b114b6361666ce3d740caabbf99723fe0f43</id>
<content type='text'>
Helps issue #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Helps issue #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>Move tests/completion-test.c to glib/tests/completion.c</title>
<updated>2021-12-13T16:42:23+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2021-12-13T16:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=cde56cfc70cf80c07614cdf1a42fd4417138a70e'/>
<id>cde56cfc70cf80c07614cdf1a42fd4417138a70e</id>
<content type='text'>
Helps issue #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Helps issue #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>gfileutils: Correctly reset start value when canonicalising paths</title>
<updated>2021-12-02T17:50:17+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>pwithnall@endlessos.org</email>
</author>
<published>2021-12-02T11:33:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=fc25f8d7ef0f4b60bbfaa148e31559006f84e614'/>
<id>fc25f8d7ef0f4b60bbfaa148e31559006f84e614</id>
<content type='text'>
If a path starts with more than two slashes, the `start` value was
previously incorrect:
 1. As per the `g_path_skip_root()` call, `start` was set to point to
    after the final initial slash. For a path with three initial
    slashes, this is the character after the third slash.
 2. The canonicalisation loop to find the first dir separator sets
    `output` to point to the character after the first slash (and it
    overwrites the first slash to be `G_DIR_SEPARATOR`).
 3. At this point, with a string `///usr`, `output` points to the second
    `/`; and `start` points to the `u`. This is incorrect, as `start`
    should point to the starting character for output, as per the
    original call to `g_path_skip_root()`.
 4. For paths which subsequently include a `..`, this results in the
    `output &gt; start` check in the `..` loop below not skipping all the
    characters of a preceding path component, which is then caught by
    the `G_IS_DIR_SEPARATOR (output[-1])` assertion.

Fix this by resetting `start` to `output` after finding the final slash
to keep in the output, but before starting the main parsing loop.

Relatedly, split `start` into two variables: `after_root` and
`output_start`, since the variable actually has two roles in the two
parts of the function.

Includes a test.

This commit is heavily based on suggestions by Sebastian Wilhemi and
Sebastian Dröge.

Signed-off-by: Philip Withnall &lt;pwithnall@endlessos.org&gt;

oss-fuzz#41563
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a path starts with more than two slashes, the `start` value was
previously incorrect:
 1. As per the `g_path_skip_root()` call, `start` was set to point to
    after the final initial slash. For a path with three initial
    slashes, this is the character after the third slash.
 2. The canonicalisation loop to find the first dir separator sets
    `output` to point to the character after the first slash (and it
    overwrites the first slash to be `G_DIR_SEPARATOR`).
 3. At this point, with a string `///usr`, `output` points to the second
    `/`; and `start` points to the `u`. This is incorrect, as `start`
    should point to the starting character for output, as per the
    original call to `g_path_skip_root()`.
 4. For paths which subsequently include a `..`, this results in the
    `output &gt; start` check in the `..` loop below not skipping all the
    characters of a preceding path component, which is then caught by
    the `G_IS_DIR_SEPARATOR (output[-1])` assertion.

Fix this by resetting `start` to `output` after finding the final slash
to keep in the output, but before starting the main parsing loop.

Relatedly, split `start` into two variables: `after_root` and
`output_start`, since the variable actually has two roles in the two
parts of the function.

Includes a test.

This commit is heavily based on suggestions by Sebastian Wilhemi and
Sebastian Dröge.

Signed-off-by: Philip Withnall &lt;pwithnall@endlessos.org&gt;

oss-fuzz#41563
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'move_bit-test' into 'main'</title>
<updated>2021-12-02T09:45:37+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2021-12-02T09:45:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=17ffe7b303a3ebb08ee6f13834a963b618584009'/>
<id>17ffe7b303a3ebb08ee6f13834a963b618584009</id>
<content type='text'>
Merging tests/bit-test.c into glib/tests/utils.c

See merge request GNOME/glib!2379</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merging tests/bit-test.c into glib/tests/utils.c

See merge request GNOME/glib!2379</pre>
</div>
</content>
</entry>
</feed>
