Fixes #29357 and oss-fuzz#62756
(https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62756).
_cleanup_fclose_ FILE *f = NULL, *null = NULL;
_cleanup_fdset_free_ FDSet *fdset = NULL;
_cleanup_fclose_ FILE *f = NULL, *null = NULL;
_cleanup_fdset_free_ FDSet *fdset = NULL;
+ if (outside_size_range(size, 0, 65536))
+ return 0;
+
/* We don't want to fill the logs with messages about parse errors.
* Disable most logging if not running standalone. */
if (!getenv("SYSTEMD_LOG_LEVEL")) {
/* We don't want to fill the logs with messages about parse errors.
* Disable most logging if not running standalone. */
if (!getenv("SYSTEMD_LOG_LEVEL")) {
--- /dev/null
+[libfuzzer]
+max_len = 65536