LoRa Security Fix#105
Conversation
ETSells
left a comment
There was a problem hiding this comment.
LGTM! @266-750Balloons should approve as well since it's his component.
|
|
||
|
|
||
| if (*buffer_len_ptr > *max_buffer_len) { | ||
| return LORA_FAIL; |
There was a problem hiding this comment.
nit: consider adding a new status entry for this particular status (something like LORA_BUFFER_UNDERSIZED). This would allow us to detect when this condition occurs in the app/mod layer, and thus we could implement fail-safe handling for this condition.
There was a problem hiding this comment.
Oop I think I did add that, I just forgot to commit it. LORA_BUFFER_UNDERSIZED sounds like a better name than what I had originally though
There was a problem hiding this comment.
Yeah this looks great to me. Up to @266-750Balloons now.
|
@266-750Balloons Stale PR: bump. |
266-750Balloons
left a comment
There was a problem hiding this comment.
Looks good. Merging. Sorry for taking 50 years to review this.
…er size
Description
A brief description of the changes in the PR
Issue Link
Please provide a link to the issue (e.g. "Closes #1").
Also, if this PR is one of multiple for this issue, link the parent if this is a child OR link
the children if this is the parent. Do not use "closes" keywords on child PRs, only use them on
the parent.
Testing
Attach any test artifacts here, if relevant.
Other
Leave any additional notes here
Reviewer Checklist
Standards
Error Handling
Memory
Performance