mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-14 15:16:40 +00:00
hop_count was clamped to MAX_HIST_PATH_BYTES regardless of hash_size, but path[] is only MAX_HIST_PATH_BYTES bytes total -- with hash_size>1 the old clamp let i*hash_size run past the buffer in resolveHopName(). Not reachable today since capturePath()/markChannelRelayed() already bound hop_count to MAX_HIST_PATH_BYTES/hash_size on write, but the reader shouldn't rely on writer discipline alone. Now clamps to the same MAX_HIST_PATH_BYTES/hash_size bound. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>