https://bugs.winehq.org/show_bug.cgi?id=47899
Bug ID: 47899 Summary: Review the VM name validation Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
The web interface allows the creation of VMs that have dashes in their name. But when untainting its parameters LibvirtTool considers such names to be invalid, so that trying to revert these VMm fails.
There is a VM::Validate() method that should validate the VM name among others, but obviously it cannot be used to check and untaint script parameters.
So the VM name validation criterions need to be checked and a standard function provided.