fredlcore / BSB-LAN

LAN/WiFi interface for Boiler-System-Bus (BSB) and Local Process Bus (LPB) and Punkt-zu-Punkt Schnittstelle (PPS) with a Siemens® controller used by Elco®, Brötje® and similar heating systems
222 stars 84 forks source link

Fixed code for Web API /JK=<category-number> #528

Closed fschaeck closed 1 year ago

fschaeck commented 1 year ago

Using a category number outside the valid range would set cat_min and cat_max to arbitrary numbers and produce all kinds of crazy behaviour.

The category number is now checked before the array ENUM_CAT_NR is referenced and in case of an illegal category number 0 is used.

fredlcore commented 1 year ago

Thanks!