mirror of https://github.com/meshcore-dev/MeshCore
Browse Source
readFrom reads the header byte, transport codes (4 bytes), and path_len from the source buffer before any length validation. With a short input, these reads go past the end of the buffer. Add upfront length checks: minimum 2 bytes overall, transport codes require 4 additional bytes, and path must fit before the remaining payload.pull/1666/head
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue