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

Fix crash when using String::move on empty string (#10938) #10945

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

TD-er
Copy link
Contributor

@TD-er TD-er commented Feb 6, 2025

Squashed single commit of previous PRs:

Description of Change

  • Fix String::move
  • A lot of the same checks were done before calling copy() which should be done in the copy() function itself.
  • String::move, String::copy and String::concat(const char*, unsigned int) tried to access beyond the specified length.
  • String::concat(const String&) would return false when concatenating an empty String which had the buffer() set to nullptr. (see test code below)

Test code which may fail due to not respecting given length:

String str;
char buf[] = {'a', 'b'};
str.concat(buf, sizeof(buf));

Related links

Fixes: #10938

Fixes: espressif#10938
Keep allocated memory when rhs fits

Use case: Appending to a String with pre-allocated memory (e.g. from `reserve()`)
No need to move 0-termination char in String::move
Simplify calls to String::copy

A lot of the same checks were done before calling `copy()` which should be done in the `copy()` function itself.
String::copy() Should not copy more than given length
Fix potential out of range in String::concat

There is no prerequisite the given array has to be a 0-terminated char array.
So we should only copy the length that has been given.

The `setLen()` function will make sure the internal string is 0-terminated.
So no need to dangerously assume there will be 1 more byte to copy
Allow String::concat(const String &s) with s.buffer() == nullptr

When constructing a String object, the internal buffer is a nullptr.
However concatenating this to another String would return `false` while this is perfectly fine to do.
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Warnings
⚠️

Some issues found for the commit messages in this PR:

  • the commit message "Fix crash when using String::move on empty string (#10938)":
    • footer's lines must not be longer than 100 characters
    • summary looks empty
    • type/action looks empty

Please fix these commit messages - here are some basic tips:

  • follow Conventional Commits style
  • correct format of commit message should be: <type/action>(<scope/component>): <summary>, for example fix(esp32): Fixed startup timeout issue
  • allowed types are: change,ci,docs,feat,fix,refactor,remove,revert,test
  • sufficiently descriptive message summary should be between 10 to 72 characters and start with upper case letter
  • avoid Jira references in commit messages (unavailable/irrelevant for our customers)

TIP: Install pre-commit hooks and run this check when committing (uses the Conventional Precommit Linter).

👋 Hello TD-er, we appreciate your contribution to this project!


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 25a8c9a

Copy link
Contributor

github-actions bot commented Feb 6, 2025

Test Results

 62 files   62 suites   5m 39s ⏱️
 21 tests  21 ✅ 0 💤 0 ❌
153 runs  153 ✅ 0 💤 0 ❌

Results for commit 25a8c9aa.

Copy link
Contributor

github-actions bot commented Feb 6, 2025

Memory usage test (comparing PR against master branch)

The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32P4💚 -900💚 -0.020.00000.000.00
ESP32S3💚 -84‼️ +5K💚 -0.02⚠️ +0.500⚠️ +4960.00⚠️ +0.83
ESP32S2💚 -108‼️ +4K💚 -0.02⚠️ +0.400⚠️ +120.00⚠️ +0.02
ESP32C3💚 -900💚 -0.020.00000.000.00
ESP32C6💚 -900💚 -0.030.00000.000.00
ESP32H2💚 -880💚 -0.020.00000.000.00
ESP32💚 -80‼️ +12K💚 -0.02‼️ +1.230⚠️ +680.00⚠️ +0.11
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA💚 -380💚 -320💚 -320💚 -380💚 -380--💚 -200
AsyncUDP/examples/AsyncUDPClient💚 -20💚 -40💚 -40💚 -20💚 -20--00
AsyncUDP/examples/AsyncUDPMulticastServer💚 -20💚 -40💚 -40💚 -20💚 -20--00
AsyncUDP/examples/AsyncUDPServer💚 -20💚 -40💚 -40💚 -20💚 -20--00
DNSServer/examples/CaptivePortal💚 -880💚 -760💚 -800💚 -880💚 -880--💚 -720
EEPROM/examples/eeprom_class💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
EEPROM/examples/eeprom_extra💚 -120💚 -120💚 -120💚 -120💚 -100💚 -10000
EEPROM/examples/eeprom_write💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/LEDCFade💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/LEDCSingleChannel💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/LEDCSoftwareFade💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/SigmaDelta💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/ledcFrequency💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogOut/ledcWrite_RGB💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogRead💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/AnalogReadContinuous💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/ArduinoStackSize💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/CI/CIBoardsTest💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/ChipID/GetChipID💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/DeepSleep/TimerWakeUp💚 -140💚 -160💚 -160💚 -120💚 -120--00
ESP32/examples/DeepSleep/TouchWakeUp💚 -120💚 -160💚 -160------00
ESP32/examples/FreeRTOS/BasicMultiThreading💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/FreeRTOS/Mutex💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/FreeRTOS/Queue💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/FreeRTOS/Semaphore💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/GPIO/BlinkRGB💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/GPIO/FunctionalInterrupt💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/GPIO/FunctionalInterruptStruct💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/GPIO/GPIOInterrupt💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/HWCDC_Events💚 -20💚 -40--💚 -20💚 -20💚 -20--
ESP32/examples/MacAddress/GetMacAddress💚 -120💚 -160💚 -160💚 -140💚 -120💚 -12000
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible💚 -20💚 -40💚 -40💚 -20💚 -20💚 -20💚 -40
ESP32/examples/RMT/RMTCallback💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMTLoopback💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMTReadXJT💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMTWrite_RGB_LED💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMT_CPUFreq_Test💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMT_EndOfTransmissionState💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/RMT/RMT_LED_Blink💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/ResetReason/ResetReason💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/ResetReason/ResetReason2💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/BaudRateDetect_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/OnReceiveError_BREAK_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/OnReceive_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/RS485_Echo_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/RxFIFOFull_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/RxTimeout_Demo💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/Serial_All_CPU_Freqs💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/Serial_STD_Func_OnReceive💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Serial/onReceiveExample💚 -140💚 -160💚 -160💚 -120💚 -140💚 -12000
ESP32/examples/TWAI/TWAIreceive💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/TWAI/TWAItransmit💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Template/ExampleTemplate💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Time/SimpleTime💚 -20💚 -40💚 -40💚 -20💚 -20--00
ESP32/examples/Timer/RepeatTimer💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Timer/WatchdogTimer💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP32/examples/Touch/TouchInterrupt💚 -20💚 -40💚 -40------00
ESP32/examples/Touch/TouchRead💚 -20💚 -40💚 -40------00
ESP32/examples/Utilities/HEXBuilder💚 -1600000💚 -160💚 -160💚 -160💚 -120
ESP32/examples/Utilities/MD5Builder💚 -120💚 -120💚 -120💚 -100💚 -100💚 -14000
ESP32/examples/Utilities/SHA1Builder💚 -100💚 -120💚 -120💚 -100💚 -120💚 -14000
ESP_I2S/examples/ES8388_loopback💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESP_I2S/examples/Record_to_WAV💚 -660💚 -520--------💚 -600
ESP_I2S/examples/Simple_tone💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
ESPmDNS/examples/mDNS-SD_Extended💚 -120💚 -160💚 -120💚 -120💚 -120--00
ESPmDNS/examples/mDNS_Web_Server💚 -880💚 -800💚 -760💚 -880💚 -880--💚 -760
Ethernet/examples/ETH_TLK110💚 -20----------00
Ethernet/examples/ETH_W5500_Arduino_SPI💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Ethernet/examples/ETH_W5500_IDF_SPI💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Ethernet/examples/ETH_WIFI_BRIDGE💚 -20💚 -40💚 -40💚 -20💚 -20--00
FFat/examples/FFat_Test💚 -660💚 -480💚 -480💚 -660💚 -660💚 -660💚 -600
FFat/examples/FFat_time💚 -660💚 -560💚 -560💚 -660💚 -660--💚 -680
HTTPClient/examples/Authorization💚 -880💚 -720💚 -720💚 -880💚 -880--💚 -720
HTTPClient/examples/BasicHttpClient💚 -880💚 -720💚 -720💚 -880💚 -880--💚 -720
HTTPClient/examples/BasicHttpsClient💚 -880💚 -800💚 -720💚 -880💚 -880--💚 -760
HTTPClient/examples/ReuseConnection💚 -880💚 -720💚 -720💚 -880💚 -880--💚 -760
HTTPClient/examples/StreamHttpClient💚 -880💚 -720💚 -760💚 -880💚 -880--💚 -760
HTTPUpdate/examples/httpUpdate💚 -880💚 -720💚 -720💚 -880💚 -880--💚 -760
HTTPUpdate/examples/httpUpdateSPIFFS💚 -880💚 -600💚 -720💚 -880💚 -880--💚 -720
HTTPUpdate/examples/httpUpdateSecure💚 -880💚 -760💚 -720💚 -880💚 -880--💚 -720
HTTPUpdateServer/examples/WebUpdater💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -720
LittleFS/examples/LITTLEFS_test💚 -680💚 -480💚 -480💚 -660💚 -660💚 -660💚 -600
LittleFS/examples/LITTLEFS_time💚 -660💚 -560💚 -600💚 -660💚 -660--💚 -680
NetBIOS/examples/ESP_NBNST💚 -140💚 -120💚 -120💚 -140💚 -140--00
NetworkClientSecure/examples/WiFiClientInsecure💚 -120💚 -120💚 -120💚 -120💚 -120--00
NetworkClientSecure/examples/WiFiClientPSK💚 -120💚 -120💚 -120💚 -120💚 -120--00
NetworkClientSecure/examples/WiFiClientSecure💚 -120💚 -120💚 -120💚 -120💚 -120--00
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade💚 -240💚 -240💚 -240💚 -240💚 -240--💚 -160
NetworkClientSecure/examples/WiFiClientShowPeerCredentials💚 -880💚 -720💚 -720💚 -880💚 -880--💚 -800
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse💚 -120💚 -120💚 -120💚 -120💚 -120--00
PPP/examples/PPP_Basic💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
PPP/examples/PPP_WIFI_BRIDGE💚 -20💚 -40💚 -40💚 -20💚 -20--💚 -160
Preferences/examples/Prefs2Struct💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Preferences/examples/StartCounter💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
SD/examples/SD_Test💚 -660💚 -480💚 -480💚 -660💚 -660💚 -660💚 -600
SD/examples/SD_time💚 -660💚 -400💚 -640💚 -660💚 -660--💚 -600
SD_MMC/examples/SD2USBMSC💚 -660💚 -560----------
SD_MMC/examples/SDMMC_Test💚 -660💚 -480--------💚 -600
SD_MMC/examples/SDMMC_time💚 -660💚 -560--------💚 -640
SPI/examples/SPI_Multiple_Buses💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
SPIFFS/examples/SPIFFS_Test💚 -680💚 -480💚 -480💚 -680💚 -680💚 -680💚 -600
SPIFFS/examples/SPIFFS_time💚 -660💚 -480💚 -560💚 -660💚 -660--💚 -600
TFLiteMicro/examples/hello_world💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Ticker/examples/Blinker💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Ticker/examples/TickerBasic💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Ticker/examples/TickerParameter💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
USB/examples/CompositeDevice💚 -20💚 -120💚 -120--------
USB/examples/ConsumerControl💚 -20💚 -120💚 -120--------
USB/examples/CustomHIDDevice💚 -20💚 -120💚 -120--------
USB/examples/FirmwareMSC💚 -20💚 -120💚 -120--------
USB/examples/Gamepad💚 -20💚 -120💚 -120--------
USB/examples/HIDVendor💚 -20💚 -120💚 -120--------
USB/examples/Keyboard/KeyboardLogout💚 -20💚 -120💚 -120--------
USB/examples/Keyboard/KeyboardMessage💚 -20💚 -120💚 -120--------
USB/examples/Keyboard/KeyboardReprogram💚 -20💚 -120💚 -120--------
USB/examples/Keyboard/KeyboardSerial💚 -20💚 -120💚 -120--------
USB/examples/KeyboardAndMouseControl💚 -20💚 -120💚 -120--------
USB/examples/MIDI/MidiController💚 -20💚 -120💚 -120--------
USB/examples/MIDI/MidiInterface💚 -20💚 -120💚 -120--------
USB/examples/MIDI/MidiMusicBox💚 -20💚 -120💚 -120--------
USB/examples/MIDI/ReceiveMidi💚 -20💚 -120💚 -120--------
USB/examples/Mouse/ButtonMouseControl💚 -20💚 -120💚 -120--------
USB/examples/SystemControl💚 -20💚 -120💚 -120--------
USB/examples/USBMSC💚 -20💚 -120💚 -120--------
USB/examples/USBSerial💚 -20💚 -120💚 -120--------
USB/examples/USBVendor💚 -140💚 -240💚 -240--------
Update/examples/AWS_S3_OTA_Update💚 -240💚 -240💚 -240💚 -240💚 -240--💚 -120
Update/examples/HTTPS_OTA_Update💚 -20💚 -40💚 -40💚 -20💚 -20--00
Update/examples/HTTP_Client_AES_OTA_Update💚 -880💚 -760💚 -640💚 -880💚 -880--💚 -720
Update/examples/HTTP_Server_AES_OTA_Update💚 -880💚 -720💚 -840💚 -880💚 -880--💚 -800
Update/examples/OTAWebUpdater💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -760
Update/examples/SD_Update💚 -880💚 -640💚 -880💚 -880💚 -880💚 -880💚 -720
WebServer/examples/AdvancedWebServer💚 -880💚 -760💚 -920💚 -880💚 -880--💚 -720
WebServer/examples/FSBrowser💚 -880💚 -760💚 -720💚 -880💚 -880--💚 -720
WebServer/examples/Filters💚 -880💚 -760💚 -680💚 -880💚 -880--💚 -800
WebServer/examples/HelloServer💚 -880💚 -760💚 -1080💚 -880💚 -880--💚 -680
WebServer/examples/HttpAdvancedAuth💚 -900💚 -760💚 -680💚 -900💚 -900--💚 -720
WebServer/examples/HttpAuthCallback💚 -900💚 -840💚 -760💚 -900💚 -900--💚 -760
WebServer/examples/HttpAuthCallbackInline💚 -900💚 -840💚 -680💚 -900💚 -900--💚 -720
WebServer/examples/HttpBasicAuth💚 -900💚 -600💚 -680💚 -900💚 -900--💚 -720
WebServer/examples/HttpBasicAuthSHA1💚 -900💚 -800💚 -760💚 -900💚 -900--💚 -760
WebServer/examples/HttpBasicAuthSHA1orBearerToken💚 -900💚 -720💚 -680💚 -900💚 -900--💚 -720
WebServer/examples/MultiHomedServers💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -760
WebServer/examples/PathArgServer💚 -880💚 -720💚 -920💚 -880💚 -880--💚 -720
WebServer/examples/SDWebServer💚 -900💚 -800💚 -760💚 -900💚 -900--💚 -760
WebServer/examples/SimpleAuthentification💚 -880💚 -800💚 -640💚 -880💚 -880--💚 -760
WebServer/examples/UploadHugeFile💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -800
WebServer/examples/WebServer💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -800
WebServer/examples/WebUpdate💚 -880💚 -760💚 -760💚 -880💚 -880--💚 -720
WiFi/examples/FTM/FTM_Initiator💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/FTM/FTM_Responder💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/SimpleWiFiServer💚 -140💚 -160💚 -160💚 -140💚 -140--00
WiFi/examples/WiFiAccessPoint💚 -140💚 -120💚 -160💚 -140💚 -140--00
WiFi/examples/WiFiClient💚 -120💚 -160💚 -120💚 -120💚 -120--00
WiFi/examples/WiFiClientBasic💚 -140💚 -160💚 -160💚 -140💚 -140--00
WiFi/examples/WiFiClientConnect💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiClientEvents💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiClientStaticIP💚 -120💚 -120💚 -160💚 -120💚 -120--00
WiFi/examples/WiFiExtender💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiIPv6💚 -20💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiMulti💚 -140💚 -160💚 -160💚 -140💚 -140--00
WiFi/examples/WiFiMultiAdvanced💚 -880💚 -720💚 -760💚 -880💚 -880--💚 -760
WiFi/examples/WiFiScan💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiScanAsync💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiScanDualAntenna💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiScanTime💚 -20💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiTelnetToSerial💚 -140💚 -160💚 -200💚 -140💚 -140--00
WiFi/examples/WiFiUDPClient💚 -20💚 -40💚 -40💚 -20💚 -20--00
Wire/examples/WireMaster💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Wire/examples/WireScan💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
Wire/examples/WireSlave💚 -20💚 -40💚 -40💚 -20💚 -20💚 -2000
BLE/examples/BLE5_extended_scan--💚 -760--💚 -880💚 -880💚 -880--
BLE/examples/BLE5_multi_advertising--💚 -720--💚 -880💚 -880💚 -880--
BLE/examples/BLE5_periodic_advertising--💚 -720--💚 -880💚 -880💚 -880--
BLE/examples/BLE5_periodic_sync--💚 -800--💚 -880💚 -880💚 -880--
BLE/examples/Beacon_Scanner--💚 -720--💚 -880💚 -880💚 -880💚 -520
BLE/examples/Client--💚 -760--💚 -880💚 -880💚 -880💚 -720
BLE/examples/EddystoneTLM_Beacon--💚 -720--💚 -880💚 -880💚 -880💚 -680
BLE/examples/EddystoneURL_Beacon--💚 -800--💚 -880💚 -880💚 -880💚 -680
BLE/examples/Notify--💚 -760--💚 -880💚 -880💚 -880💚 -720
BLE/examples/Scan--💚 -720--💚 -880💚 -880💚 -880💚 -720
BLE/examples/Server--💚 -760--💚 -880💚 -880💚 -880💚 -680
BLE/examples/Server_multiconnect--💚 -720--💚 -880💚 -880💚 -880💚 -720
BLE/examples/UART--💚 -680--💚 -880💚 -880💚 -880💚 -640
BLE/examples/Write--💚 -680--💚 -880💚 -880💚 -880💚 -680
BLE/examples/iBeacon--💚 -680--💚 -880💚 -880💚 -880💚 -680
ESP32/examples/Camera/CameraWebServer--‼️ +5K⚠️ +496‼️ +4K⚠️ +12------‼️ +12K⚠️ +68
ESP32/examples/DeepSleep/ExternalWakeUp--💚 -160💚 -160------00
ESP_NOW/examples/ESP_NOW_Broadcast_Master--💚 -40💚 -40💚 -20💚 -20--00
ESP_NOW/examples/ESP_NOW_Broadcast_Slave--💚 -40💚 -40💚 -20💚 -20--00
ESP_NOW/examples/ESP_NOW_Network--💚 -40💚 -40💚 -20💚 -20--00
ESP_NOW/examples/ESP_NOW_Serial--💚 -40💚 -40💚 -20💚 -20--00
ESP_SR/examples/Basic--💚 -40----------
HTTPClient/examples/HTTPClientEnterprise--💚 -720💚 -600💚 -880💚 -880--💚 -520
Insights/examples/DiagnosticsSmokeTest--💚 -40💚 -40💚 -20💚 -20--00
Insights/examples/MinimalDiagnostics--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterColorLight--💚 -40💚 -40💚 -20💚 -20--⚠️ +160
Matter/examples/MatterCommissionTest--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterComposedLights--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterContactSensor--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterDimmableLight--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterEnhancedColorLight--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterFan--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterHumiditySensor--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterMinimum--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterOccupancySensor--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterOnIdentify--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterOnOffLight--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterOnOffPlugin--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterPressureSensor--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterSmartButon--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterTemperatureLight--💚 -40💚 -40💚 -20💚 -20--00
Matter/examples/MatterTemperatureSensor--💚 -40💚 -120💚 -20💚 -20--00
Matter/examples/MatterThermostat--💚 -160💚 -160💚 -140💚 -140--00
Matter/examples/WiFiProvWithinMatter--💚 -40💚 -40💚 -20💚 -20--00
NetworkClientSecure/examples/WiFiClientSecureEnterprise--💚 -120💚 -120💚 -120💚 -120--00
RainMaker/examples/RMakerCustom--💚 -40💚 -40💚 -20💚 -20--00
RainMaker/examples/RMakerCustomAirCooler--💚 -40💚 -40💚 -20💚 -20----
RainMaker/examples/RMakerSonoffDualR3--💚 -40💚 -40💚 -20💚 -20----
RainMaker/examples/RMakerSwitch--💚 -40💚 -40💚 -20💚 -20--00
SimpleBLE/examples/SimpleBleDevice--💚 -680--💚 -660💚 -660💚 -680💚 -640
WebServer/examples/Middleware--💚 -840💚 -800💚 -880💚 -880--💚 -720
WiFi/examples/WPS--💚 -40💚 -40💚 -20💚 -20--00
WiFi/examples/WiFiBlueToothSwitch--💚 -40--💚 -20💚 -20--00
WiFi/examples/WiFiClientEnterprise--💚 -120💚 -120💚 -120💚 -120--00
WiFi/examples/WiFiSmartConfig--💚 -40💚 -40💚 -20💚 -20--00
WiFiProv/examples/WiFiProv--💚 -40💚 -40💚 -20💚 -20--00
OpenThread/examples/COAP/coap_lamp--------💚 -140💚 -140--
OpenThread/examples/COAP/coap_switch--------💚 -140💚 -120--
OpenThread/examples/SimpleCLI--------💚 -140💚 -120--
OpenThread/examples/SimpleNode--------💚 -120💚 -120--
OpenThread/examples/SimpleThreadNetwork/ExtendedRouterNode--------💚 -120💚 -120--
OpenThread/examples/SimpleThreadNetwork/LeaderNode--------💚 -140💚 -120--
OpenThread/examples/SimpleThreadNetwork/RouterNode--------💚 -120💚 -140--
OpenThread/examples/ThreadScan--------💚 -140💚 -140--
OpenThread/examples/onReceive--------💚 -140💚 -120--
Zigbee/examples/Zigbee_CarbonDioxide_Sensor--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Color_Dimmable_Light--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Color_Dimmer_Switch--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Contact_Switch--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Dimmable_Light--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Occupancy_Sensor--------💚 -20💚 -20--
Zigbee/examples/Zigbee_On_Off_Light--------💚 -20💚 -20--
Zigbee/examples/Zigbee_On_Off_Switch--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Pressure_Flow_Sensor--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Scan_Networks--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Temperature_Sensor--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Thermostat--------💚 -20💚 -20--
Zigbee/examples/Zigbee_Window_Covering--------💚 -20💚 -20--
BluetoothSerial/examples/DiscoverConnect------------💚 -240
BluetoothSerial/examples/GetLocalMAC------------💚 -240
BluetoothSerial/examples/SerialToSerialBT------------💚 -160
BluetoothSerial/examples/SerialToSerialBTM------------💚 -280
BluetoothSerial/examples/SerialToSerialBT_Legacy------------💚 -160
BluetoothSerial/examples/SerialToSerialBT_SSP------------⚠️ +1040
BluetoothSerial/examples/bt_classic_device_discovery------------💚 -160
BluetoothSerial/examples/bt_remove_paired_devices------------💚 -160
ESP32/examples/DeepSleep/SmoothBlink_ULP_Code------------00
Ethernet/examples/ETH_LAN8720------------00

@lucasssvaz lucasssvaz requested a review from me-no-dev February 7, 2025 13:30
@me-no-dev me-no-dev added the Status: Pending Merge Pull Request is ready to be merged label Feb 13, 2025
@me-no-dev me-no-dev merged commit 5488d5d into espressif:master Feb 13, 2025
72 checks passed
@TD-er TD-er deleted the bugfix/string_class_fixes branch February 13, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Merge Pull Request is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when using String::move on empty string
3 participants