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

WiFiUDF Low memory fix #8065

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Conversation

mrengineer7777
Copy link
Collaborator

Fixed WiFiUDP crash on low memory where new char[1460]; throws an exception. malloc is a safe drop in replacement.


Description of Change

Subset of PR 7868 targeting v2.x branch. Resolves crash in WiFiUDP by replacing new (which can throw an exception) with malloc.

Related links

Closes #7558

Fixed library crash on low memory where `new char[1460];` throws an exception.  `malloc` is a safe drop in replacement.
@me-no-dev me-no-dev merged commit 483bebf into espressif:release/v2.x Apr 11, 2023
@mrengineer7777 mrengineer7777 deleted the issue7558 branch April 12, 2023 13:36
me-no-dev pushed a commit that referenced this pull request Sep 4, 2023
Fixed library crash on low memory where `new char[1460];` throws an exception.  `malloc` is a safe drop in replacement.
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.

2 participants