Closed mikaleppanen closed 6 years ago
Hi
Any update ?
Thx
Test will be replaced with new net socket tests in: https://github.com/ARMmbed/mbed-os/pull/6665
There will not be updates to old ones, but the new tests has to be verified with these boards (e.g. NUCLEO_F767ZI) to ensure that there are no new test case problems.
Maybe this issue can be closed ?
ARM Internal Ref: MBOTRIAGE-76
New tests have been released in 5.9. This is no longer valid. Closing this.
Description
Bug
Target NUCLEO_F767ZI
Toolchain: GCC_ARM
Toolchain version: 6-2017-q2
Expected behavior
Greentea UDP and TCP packet pressure tests should pass:
Actual behavior
Greentea UDP and TCP packet pressure tests fail on platforms with large memories.
This is due to overflow on lwip socket send/receive where application socket buffer length is cast from uint32 to uint16 without checking if value is larger than uint16.
Also, in case platform has more memory than configured maximum, test case generate_buffer() routine does not divide the reserved memory by four, before trying to allocate it.
Fixes needed to both lwip and test cases.
Steps to reproduce
Run tests on platform with large memory (more than >128kbytes)