fix: crash on invalid command-line value for --cache / -e arg (#8163)

* fix: crash on invalid command-line value for --cache arg

* Update utils/remote.cc

Co-authored-by: Yat Ho <lagoho7@gmail.com>

---------

Co-authored-by: Yat Ho <lagoho7@gmail.com>

(cherry picked from commit f200bedd57)

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
Yat Ho
2026-01-20 05:29:36 +08:00
committed by GitHub
parent a5733a408c
commit d083b3f94b

View File

@@ -2885,6 +2885,11 @@ int process_args(char const* rpcurl, int argc, char const* const* argv, RemoteCo
{
args.insert_or_assign(TR_KEY_cache_size_mib, *val);
}
else
{
fmt::print(stderr, "Argument to '-e'/'--cache' should be an integer");
status |= EXIT_FAILURE;
}
break;
case 910: