<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/systemd.git/src/fuzz, branch main</title>
<subtitle>github.com: systemd/systemd.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/'/>
<entry>
<title>compress: replace compress_blob() with compress_blob_explicit()</title>
<updated>2023-04-11T07:14:34+00:00</updated>
<author>
<name>Yu Watanabe</name>
<email>watanabe.yu+github@gmail.com</email>
</author>
<published>2023-04-08T06:15:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=bfeaa62dbc9d2a436e2d3413386ba38f48b5d502'/>
<id>bfeaa62dbc9d2a436e2d3413386ba38f48b5d502</id>
<content type='text'>
And make compress_xyz() return 0 on success, as we know which compression
algorithm is used when calling compress_blob().

Follow-up for 2360352ef02548723ac0c8eaf5ff6905eb9eeca5.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And make compress_xyz() return 0 on success, as we know which compression
algorithm is used when calling compress_blob().

Follow-up for 2360352ef02548723ac0c8eaf5ff6905eb9eeca5.
</pre>
</div>
</content>
</entry>
<entry>
<title>meson: Add simple_fuzzers list</title>
<updated>2023-02-21T14:10:26+00:00</updated>
<author>
<name>Jan Janssen</name>
<email>medhefgo@web.de</email>
</author>
<published>2023-01-27T12:22:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=a9a7153cd24666edb67a4917b9a95fa41cd1929c'/>
<id>a9a7153cd24666edb67a4917b9a95fa41cd1929c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-wide: introduce PIPE_EBADF macro</title>
<updated>2022-12-20T02:12:58+00:00</updated>
<author>
<name>Yu Watanabe</name>
<email>watanabe.yu+github@gmail.com</email>
</author>
<published>2022-12-20T01:10:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=19ee48a6c29a03f6475689667b5c625a41589e72'/>
<id>19ee48a6c29a03f6475689667b5c625a41589e72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-wide: use -EBADF also in pipe initializers</title>
<updated>2022-12-19T14:00:59+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-12-19T12:20:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=3401477982d09e0c9815ae5a69e56f43f187967e'/>
<id>3401477982d09e0c9815ae5a69e56f43f187967e</id>
<content type='text'>
In some places, initialization is dropped when unnecesary.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In some places, initialization is dropped when unnecesary.
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-wide: use -EBADF for fd initialization</title>
<updated>2022-12-19T14:00:57+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-12-19T12:07:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=254d1313ae5a69c08c9b93032aaaf3d6083cfc07'/>
<id>254d1313ae5a69c08c9b93032aaaf3d6083cfc07</id>
<content type='text'>
-1 was used everywhere, but -EBADF or -EBADFD started being used in various
places. Let's make things consistent in the new style.

Note that there are two candidates:
EBADF 9 Bad file descriptor
EBADFD 77 File descriptor in bad state

Since we're initializating the fd, we're just assigning a value that means
"no fd yet", so it's just a bad file descriptor, and the first errno fits
better. If instead we had a valid file descriptor that became invalid because
of some operation or state change, the other errno would fit better.

In some places, initialization is dropped if unnecessary.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-1 was used everywhere, but -EBADF or -EBADFD started being used in various
places. Let's make things consistent in the new style.

Note that there are two candidates:
EBADF 9 Bad file descriptor
EBADFD 77 File descriptor in bad state

Since we're initializating the fd, we're just assigning a value that means
"no fd yet", so it's just a bad file descriptor, and the first errno fits
better. If instead we had a valid file descriptor that became invalid because
of some operation or state change, the other errno would fit better.

In some places, initialization is dropped if unnecessary.
</pre>
</div>
</content>
</entry>
<entry>
<title>fuzz: fuzz-compress: fix copy-and-paste error: buf -&gt; buf2 (#25431)</title>
<updated>2022-11-18T06:03:41+00:00</updated>
<author>
<name>Li kunyu</name>
<email>kunyu@nfschina.com</email>
</author>
<published>2022-11-18T06:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=f54f6d88b1235487eb7f0c634c488edc7813579a'/>
<id>f54f6d88b1235487eb7f0c634c488edc7813579a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>basic: rename util.h to logarithm.h</title>
<updated>2022-11-08T17:21:10+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-11-06T15:54:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=3ae6b3bf723addaa8263292e19ed4c496b947a9c'/>
<id>3ae6b3bf723addaa8263292e19ed4c496b947a9c</id>
<content type='text'>
util.h is now about logarithms only, so we can rename it. Many files included
util.h for no apparent reason… Those includes are dropped.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
util.h is now about logarithms only, so we can rename it. Many files included
util.h for no apparent reason… Those includes are dropped.
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-wide: do not use "re" with fmemopen</title>
<updated>2022-10-19T08:10:57+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-10-19T07:49:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=f3bd4b3df598ce5ea3137b13054ba7cc00714640'/>
<id>f3bd4b3df598ce5ea3137b13054ba7cc00714640</id>
<content type='text'>
The man page says nothing about "e". Glibc clearly accepts it without fuss, but
it is meaningless for a memory object (and probably doesn't work). This use is
not portable, so let's avoid it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The man page says nothing about "e". Glibc clearly accepts it without fuss, but
it is meaningless for a memory object (and probably doesn't work). This use is
not portable, so let's avoid it.
</pre>
</div>
</content>
</entry>
<entry>
<title>fuzz: Introduce DO_NOT_OPTIMIZE</title>
<updated>2022-09-25T12:26:00+00:00</updated>
<author>
<name>Jan Janssen</name>
<email>medhefgo@web.de</email>
</author>
<published>2022-09-23T07:54:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=4b8eb86360b106afbc69cc014e8f1a15017c9d1f'/>
<id>4b8eb86360b106afbc69cc014e8f1a15017c9d1f</id>
<content type='text'>
The compiler may decide computations like these are not doing anything
and decide to optimize them away. This would defeat the whole fuzzing
exercise. This macro will force the compiler to materialize the value
no matter what. It should be less prone to accidents compared to using
log functions, which would either slow things down or still optimize the
value away (or simply move it into the if branch the log macros create).

The benefit over assert_se would be that no requirement is made on the
value itself. If we are fine getting a string of any size (including
zero), an assert_se would either create a noisy compiler warning about
conditions that would alawys be met or yet again optimize the whole
thing away.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compiler may decide computations like these are not doing anything
and decide to optimize them away. This would defeat the whole fuzzing
exercise. This macro will force the compiler to materialize the value
no matter what. It should be less prone to accidents compared to using
log functions, which would either slow things down or still optimize the
value away (or simply move it into the if branch the log macros create).

The benefit over assert_se would be that no requirement is made on the
value itself. If we are fine getting a string of any size (including
zero), an assert_se would either create a noisy compiler warning about
conditions that would alawys be met or yet again optimize the whole
thing away.
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-wide: use ASSERT_PTR more</title>
<updated>2022-09-13T06:13:27+00:00</updated>
<author>
<name>David Tardon</name>
<email>dtardon@redhat.com</email>
</author>
<published>2022-08-09T12:35:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/systemd.git/commit/?id=995340074e554b4bf4a0fdb0cb7436692c5a4ffd'/>
<id>995340074e554b4bf4a0fdb0cb7436692c5a4ffd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
