Skip to content

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