From ee9d406190500f0a8931e763425925793ee72e47 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Tue, 10 Dec 2024 13:37:12 +0100 Subject: [PATCH] Fix 162: closing websocket from ESP32 with Safari crashes the ESP32. This happens when Safari sends a WS frame with masked bit set and length 2. --- examples/Issue162/Issue162.ino | 29 ++++++++++++++++++++++------- src/AsyncWebSocket.cpp | 17 +++++++++++++---- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/examples/Issue162/Issue162.ino b/examples/Issue162/Issue162.ino index 9f7312f..adc82d9 100644 --- a/examples/Issue162/Issue162.ino +++ b/examples/Issue162/Issue162.ino @@ -56,13 +56,23 @@ void setup() {