diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-03-31 16:16:27 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2020-05-27 09:02:10 +0200 |
commit | 2ad7597e44dc1cfd82c6b5211575dc8dc10c24a5 (patch) | |
tree | b2705eae65cadea9ef02571d0c1a7662de72e7fe /test/fuzz | |
parent | test: Add test for XDG desktop file parsing and interpretation (diff) | |
download | systemd-2ad7597e44dc1cfd82c6b5211575dc8dc10c24a5.tar.xz systemd-2ad7597e44dc1cfd82c6b5211575dc8dc10c24a5.zip |
fuzz: Add an XDG desktop file fuzzer
To test the XDG parser used by the xdg-autostart-generator.
Co-authored-by: Evgeny Vereshchagin <evvers@ya.ru>
Diffstat (limited to 'test/fuzz')
-rw-r--r-- | test/fuzz/fuzz-xdg-desktop/full.desktop | 10 | ||||
-rw-r--r-- | test/fuzz/fuzz-xdg-desktop/org.gnome.SettingsDaemon.Power.desktop | 10 | ||||
-rw-r--r-- | test/fuzz/fuzz-xdg-desktop/valid.desktop | 12 |
3 files changed, 32 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-xdg-desktop/full.desktop b/test/fuzz/fuzz-xdg-desktop/full.desktop new file mode 100644 index 0000000000..e5da36bbab --- /dev/null +++ b/test/fuzz/fuzz-xdg-desktop/full.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=GNOME Settings Daemon's power plugin +Exec=/usr/bin/sleep %i %f "%F" "--test" ";\\\\!?" +OnlyShowIn=GNOME; +NoDisplay=true +X-GNOME-Autostart-Phase=Initialization +X-GNOME-Autostart-Notify=true +X-GNOME-AutoRestart=true +X-GNOME-HiddenUnderSystemd=true diff --git a/test/fuzz/fuzz-xdg-desktop/org.gnome.SettingsDaemon.Power.desktop b/test/fuzz/fuzz-xdg-desktop/org.gnome.SettingsDaemon.Power.desktop new file mode 100644 index 0000000000..9d3e0c5a02 --- /dev/null +++ b/test/fuzz/fuzz-xdg-desktop/org.gnome.SettingsDaemon.Power.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=GNOME Settings Daemon's power plugin +Exec=/usr/libexec/gsd-power +OnlyShowIn=GNOME; +NoDisplay=true +X-GNOME-Autostart-Phase=Initialization +X-GNOME-Autostart-Notify=true +X-GNOME-AutoRestart=true +X-GNOME-HiddenUnderSystemd=true diff --git a/test/fuzz/fuzz-xdg-desktop/valid.desktop b/test/fuzz/fuzz-xdg-desktop/valid.desktop new file mode 100644 index 0000000000..20fb5fecb7 --- /dev/null +++ b/test/fuzz/fuzz-xdg-desktop/valid.desktop @@ -0,0 +1,12 @@ +Desktop Entry +Name= +Exec= +TryExec= +Type= +OnlyShowIn= +NotShowIn= +Hidden= +AutostartCondition= +X-KDE-autostart-condition= +X-GNOME-Autostart-Phase= +X-GNOME-HiddenUnderSystemd= |