]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Sanitise format strings when creating xfers
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 10:14:27 +0000 (10:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 10:14:54 +0000 (10:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index 22aa4bab321f46e779e3bad5b4585e36212e005f..c9b92a4e2b52b0deee747e534398c51338100e4b 100644 (file)
@@ -228,6 +228,9 @@ static int __pakfire_repo_path(struct pakfire_repo* repo,
        return __pakfire_cache_path(repo->pakfire, path, length, "%s/%s", name, buffer);
 }
 
+static int pakfire_repo_xfer_create(struct pakfire_xfer** xfer, struct pakfire_repo* repo,
+       const char* url, ...) __attribute__((format(printf, 3, 4)));
+
 /*
        This is a convenience function to create a xfer with the
        settings of this repository.