mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
config: provide two memory-backed config backends
Provide two memory-backed configuration backends -- one that takes a string in config file format `[section] key=value` and one that takes a list of strings in `section.key=value` format.
This commit is contained in:
@@ -43,7 +43,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((err = git_config_backend_from_string(&backend, (const char*)data, size)) != 0) {
|
||||
if ((err = git_config_backend_from_string(&backend, (const char*)data, size, NULL)) != 0) {
|
||||
goto out;
|
||||
}
|
||||
if ((err = git_config_add_backend(cfg, backend, 0, NULL, 0)) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user