Browse Source

ws: yet another json buffer overflow

pull/2552/head
Maxim Prokhorov 1 year ago
parent
commit
c99118e294
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/ws.cpp

+ 1
- 1
code/espurna/ws.cpp View File

@ -671,7 +671,7 @@ void _wsConnected(uint32_t client_id) {
: false;
if (changePassword) {
StaticJsonBuffer<JSON_OBJECT_SIZE(1)> jsonBuffer;
DynamicJsonBuffer jsonBuffer(32);
JsonObject& root = jsonBuffer.createObject();
root[F("webMode")] = WEB_MODE_PASSWORD;
wsSend(client_id, root);


Loading…
Cancel
Save