Skip to content

tighten off-by-one report buffer overflow guards in TSIP input loops#28

Open
arib06 wants to merge 1 commit into
ntp-project:stablefrom
arib06:tsip-report-buffer-overflow
Open

tighten off-by-one report buffer overflow guards in TSIP input loops#28
arib06 wants to merge 1 commit into
ntp-project:stablefrom
arib06:tsip-report-buffer-overflow

Conversation

@arib06

@arib06 arib06 commented Jul 1, 2026

Copy link
Copy Markdown

the tsip/parse input loops in palisade_io, tsip_input_proc and gps_input store an incoming byte into the report buffer and only check the accumulated length afterward with >, so a device streaming a long dle-stuffed packet writes one byte past rpt_buf/buf/parse_msg; tighten each guard to >= (>= BMAX-1 in palisade, where the mb() macro shifts the store index by one) so the overrunning store is dropped before it happens.

@arib06

arib06 commented Jul 20, 2026

Copy link
Copy Markdown
Author

any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant