fiber: fix heap-buffer-overflow in fiber_stack_watermark_create
Fiber flags are initialized after fiber stack creation. As result currently check for custom stack in fiber_stack_watermark_create does not work. This leads to heap-buffer-overflow on putting watermark if custom stack size is less than FIBER_STACK_SIZE_WATERMARK. Close #9026 NO_DOC=bugfix (cherry picked from commit 750e4890)
Showing
- changelogs/unreleased/gh-9026-fix-heap-buffer-overflow.md 3 additions, 0 deletionschangelogs/unreleased/gh-9026-fix-heap-buffer-overflow.md
- src/lib/core/fiber.c 11 additions, 9 deletionssrc/lib/core/fiber.c
- test/unit/fiber_stack.c 29 additions, 5 deletionstest/unit/fiber_stack.c
- test/unit/suite.ini 1 addition, 1 deletiontest/unit/suite.ini
Loading
Please register or sign in to comment