Problem
sx1262.cpp:428 uses a C99 Variable Length Array: uint8_t rx_data[*actual_len + 1]. VLAs are dangerous on embedded systems with limited stack space and aren't valid in strict C++ without an extension.
Location
firmware/main/lora/sx1262.cpp:428
Severity
HIGH - Stack overflow risk, undefined behavior in strict C++
Suggested Fix
Use std::vector<uint8_t> or dynamic allocation with new[] instead.
Problem
sx1262.cpp:428uses a C99 Variable Length Array:uint8_t rx_data[*actual_len + 1]. VLAs are dangerous on embedded systems with limited stack space and aren't valid in strict C++ without an extension.Location
firmware/main/lora/sx1262.cpp:428Severity
HIGH - Stack overflow risk, undefined behavior in strict C++
Suggested Fix
Use
std::vector<uint8_t>or dynamic allocation withnew[]instead.