luanti-org/luanti

Insufficient validation of mod.conf `name`

Aperta

#16.478 aperta il 7 set 2025

 (2 commenti) (3 reazioni) (0 assegnatari)C++ (2395 fork)auto 404
@ Mainmenu / SettingsmenuBugLow prioritygood first issue

Metriche repository

Star
 (13.341 stelle)
Metriche merge PR
 (Merge medio 13g 22h) (48 PR mergiate in 30 g)

Descrizione

Luanti 176cadc377aab87a994f5870b97486058afe24c5 on Linux

Description

  1. Create mods/test3/mod.conf
  2. Input
name = """
haha ;]
oops
"""
  1. The multiline name will look weird in the menu and after opening the mod selection menu you will also get this: 2025-09-07 12:24:08: ERROR[Main]: Invalid label element(3): '0.75,0.7;haha ;'

While there is an error if you try to activate the mod, IMO we should just filter out mods that fail validation early in the code.

Guida contributor