m_options: limit list entries to 100

Limit list entries to 100. obj_settings_list is not designed to hold
more items, and it quickly starts taking ages to add all items. 100 is
more than enough.

Fixes 30s timeout on OSS-Fuzz and generally fixes possible DoS on mpv.
This commit is contained in:
Kacper Michajłow
2024-06-17 19:56:52 +02:00
parent 783150722d
commit b3b542af51
2 changed files with 36 additions and 6 deletions

View File

@@ -671,6 +671,8 @@ Options of this type can be changed at runtime using the ``change-list``
command, which takes the suffix (without the ``-``) as separate operation
parameter.
An object settings list can hold up to 100 elements.
CONFIGURATION FILES
===================