Commit Graph
1 Commits
Author SHA1 Message Date
hackengineerandClaude Fable 5 c5d3321a41 Fix unterminated MyNodeInfo.pio_env when APP_ENV is 40+ chars (#11468)
strncpy does not null-terminate when the source fills the destination.
A PlatformIO environment name of 40 or more characters leaves pio_env
unterminated, nanopb aborts the whole MyInfo encode with 'unterminated
string', getFromRadio() returns 0 bytes forever, and the client app never
receives any config after want_config_id.

Clients that receive a redacted MyInfo (pio_env cleared before encode) are
unaffected, which makes the failure look client-specific when it is not.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 11:11:11 +00:00