mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
condition: fix unexpected assertion triggered
Follow-up for c154bb65ad.
Fixes oss-fuzz#438513119.
Fixes #38570.
This commit is contained in:
committed by
Luca Boccassi
parent
b4beaafb24
commit
1a360ed196
@@ -187,7 +187,6 @@ static int condition_test_version_cmp(const char *condition, const char *ver) {
|
||||
CompareOperator operator;
|
||||
bool first = true;
|
||||
|
||||
assert(condition);
|
||||
assert(ver);
|
||||
|
||||
for (const char *p = condition;;) {
|
||||
|
||||
2
test/fuzz/fuzz-link-parser/oss-fuzz-438513119
Normal file
2
test/fuzz/fuzz-link-parser/oss-fuzz-438513119
Normal file
@@ -0,0 +1,2 @@
|
||||
[Match]
|
||||
Version=kernel
|
||||
Reference in New Issue
Block a user