1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-24 03:32:36 +08:00
Commit Graph

7 Commits

Author SHA1 Message Date
Tony Josi
0a8ad98ffc Handle buffer allocation failure in prvCreateSectors (#1152)
* Catch allocation failure in prvCreateSectors

* Fix unit tests

* Fix UTs 2

* Fix formatting
2024-06-17 09:03:54 +05:30
Andreas Nordal
0a5f7fbb2c FreeRTOS_TCP_Transmission_IPv4,6(): Move deref behind nullptr check (#1137)
Fix a possible null pointer derefernce:
The pointer returned by pxDuplicateNetworkBufferWithDescriptor()
was being dereferenced outside its null checks.
This could only happen if ipconfigZERO_COPY_TX_DRIVER was enabled.

Conveniently, the statement that used the pointer could be moved
into the scope of the null check.

Co-authored-by: Andreas Nordal <andreas.nordal@zivid.com>
2024-04-22 10:57:12 +05:30
Holden
88e1475378 Remove macros ipLOCAL_MAC_ADDRESS and ipLOCAL_IP_ADDRESS_POINTER (#1097)
* remove deprecated ipLOCAL_MAC_ADDRESS

* remove ipLOCAL_IP_ADDRESS_POINTER

* remove xDefaultPartUDPPacketHeader

* Uncrustify: triggered by comment.

* switch remote to local address

* Address Review Comments

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2024-03-20 10:39:47 +05:30
Tony Josi
ef14a0871f Fix declarations after statements (#1106)
* Fix C90: Wno-declaration-after-statement

* Uncrustify: triggered by comment

---------

Co-authored-by: GitHub Action <action@github.com>
2024-02-23 17:52:12 +05:30
Hein Tibosch
0cb2d7576c Do not clear pxEndPoint in TCPReturnPacket() (#1078)
* Do not clear pxEndPoint in TCPReturnPacket()

* Don't release pxNetworkBuffer two times

* Repair unit tests

* Add full test coverage

* Uncrustify: triggered by comment

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
2024-01-25 14:35:06 +05:30
Soren Ptak
eed294c0ec CI-CD Updates (#1014)
* Use new version of CI-CD Actions,  checkout@v3 instead of checkout@v2 on all jobs
* Use cSpell spell check, and use ubuntu-20.04 for formatting check
* Add in bot formatting action
2023-09-05 14:31:24 -07:00
Monika Singh
67b9e1c281 Update File names (#989)
* Update File names
2023-08-07 14:32:28 +05:30