You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
QLC+ can be reliably crashed with incorrect channel address values via the Web API.
To Reproduce
Start QLC+ with -w to enable web access.
Switch to the Simple Desk page.
Open https://www.qlcplus.org/Test_Web_API.html in a web browser.
Scroll down the web page to Simple Desk channel set.
Enter any number <= 0 or greater than the maximum number of channels as Absolute DMX address (default: 4 universes * 512 channels/universe = 2048 channels => > 2048).
Click on Simple Desk channel set to send the command.
QLC+ crashes (Segmentation fault).
Expected behavior
Bad values should be ignored or an error message should be displayed. In any case, the program should not freeze or crash.
I came up with this working fix, but I am not sure if this is the most elegant solution with regard to the whole QLC+ source tree:
I used this api to control QLC+ from an external script which should enable a workflow similar to the one suggested by #1194.
Instead of modifying the Scene Editor code, my idea was to let the hardware control the simple desk (through the websocket api) and then dump values to a scene.
By accident, I found out that this crash might happen and thought it would be good to fix it in order to make the apis more robust.
Describe the bug
QLC+ can be reliably crashed with incorrect channel address values via the Web API.
To Reproduce
-w
to enable web access.Simple Desk
page.https://www.qlcplus.org/Test_Web_API.html
in a web browser.Simple Desk channel set
.<= 0
or greater than the maximum number of channels asAbsolute DMX address
(default: 4 universes * 512 channels/universe = 2048 channels =>> 2048
).Simple Desk channel set
to send the command.Segmentation fault
).Expected behavior
Bad values should be ignored or an error message should be displayed. In any case, the program should not freeze or crash.
I came up with this working fix, but I am not sure if this is the most elegant solution with regard to the whole QLC+ source tree:
Desktop:
The text was updated successfully, but these errors were encountered: