Skip to content

Potential fix for #272#273

Open
TMRh20 wants to merge 1 commit into
masterfrom
BoundsCheckingInReassembly
Open

Potential fix for #272#273
TMRh20 wants to merge 1 commit into
masterfrom
BoundsCheckingInReassembly

Conversation

@TMRh20

@TMRh20 TMRh20 commented Jul 15, 2026

Copy link
Copy Markdown
Member

Ran the reassembly code through AI again and it came up with these code changes. Currently testing...

Comment thread RF24Network.cpp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense in the sense that each platform allocates different sizes for data types. We've certainly seen divergences in ESP cores on this numerous times before. I suspect this sizeof(Header) + sizeof(Addr) math is done at compile time. Might be cleaner to have a constexpr to signify that this math is calculating the... whatchamacallit... FRAG_MSG_OFFSET?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, if this works, we can def do that

@TMRh20

TMRh20 commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Been 6 days running w/no problems, going to give it a while longer:

***********Reset reason************: External System
Free: 31952 | Max Block: 31632 | Frag: 2%

Memory is holding steady and functionality is right on.

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.

2 participants