Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFiClient - Properly initialize and check _rxBuffer #8699

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

lucasssvaz
Copy link
Collaborator

@lucasssvaz lucasssvaz commented Oct 4, 2023

Description of Change

Fixes LoadProhibited exception (introduced in #8541) by properly initializing and checking the _rxBuffer pointer in the WiFiClient.

Tests scenarios

Tested on ESP32-DevKitC using the following sketch:

#include <Arduino.h>
#include <WiFi.h>

WiFiClient client;

void loop() {
  delay(1000);
  Serial.println(".");
}

void setup() {
  Serial.begin(115200);
  Serial.println("READY");
  delay(1000);
  Serial.println("Flush WiFiClient client...");
  client.flush();
  delay(2000);
  Serial.println("Setup complete");
}

Related links

Closes #8681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WiFiClient::flush() crashes due to Load Prohibit since 2.0.12, earlier versions work fine.
2 participants