Check the argument count before indexing config comment log args

A '# do:log.add_output=debug' line read args[1] past the end of the vector.
This commit is contained in:
xirvik
2026-09-19 01:06:31 +00:00
committed by Jari Sundell
parent d9439d7a95
commit 2086e8e780
4 changed files with 104 additions and 2 deletions
+2
View File
@@ -65,6 +65,8 @@ rtorrent_Test_Src_SOURCES = $(rtorrent_Test_Common) \
src/test_command_path.h \
src/test_command_string.cc \
src/test_command_string.h \
src/test_setup.cc \
src/test_setup.h \
src/test_watch_ready_queue.cc \
src/test_watch_ready_queue.h