X Tutup
Skip to content

Commit cb63114

Browse files
authored
Merge pull request systemd#9879 from evverx/get-rid-of-workaround
oss-fuzz.sh: just install the shared library
2 parents 9e5f34a + 670e95a commit cb63114

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/resolve/resolvectl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ static int resolve_openpgp(sd_bus *bus, const char *address) {
919919
arg_type ?: DNS_TYPE_OPENPGPKEY, false);
920920

921921
if (IN_SET(r, -ENXIO, -ESRCH)) { /* NXDOMAIN or NODATA? */
922-
hashed = NULL;
922+
hashed = mfree(hashed);
923923
r = string_hashsum_sha224(address, domain - 1 - address, &hashed);
924924
if (r < 0)
925925
return log_error_errno(r, "Hashing failed: %m");

tools/oss-fuzz.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ df=$build/dns-fuzzing
4444
git clone --depth 1 https://github.com/CZ-NIC/dns-fuzzing $df
4545
zip -jqr $OUT/fuzz-dns-packet_seed_corpus.zip $df/packet
4646

47-
# install the private shared library without executable permissions
48-
install -Dt $OUT/src/shared/ -m 0644 $build/src/shared/libsystemd-shared-*.so
47+
install -Dt $OUT/src/shared/ $build/src/shared/libsystemd-shared-*.so
4948

5049
find $build -maxdepth 1 -type f -executable -name "fuzz-*" -exec mv {} $OUT \;
5150
cp src/fuzz/*.options $OUT

0 commit comments

Comments
 (0)
X Tutup