forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PacketBuffer allocation size when using LwIP (project-chip#8226)
#### Problem LwIP `pbuf_alloc()` was called with a size including the `struct pbuf` header, but expects the size to exclude that. #### Change overview Call `pbuf_alloc()` with the correct size. This imports a fragment of openweave/openweave-core#608 #### Testing Added `PacketBuffer::kMaxSizeWithoutReserve` to the cases checked by `PacketBufferTest::CheckNew()`.
- Loading branch information
1 parent
2374d80
commit 5537680
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters