Ticket #5042 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

STM, newArray, and a stack overflow

Reported by: basvandijk Owned by: simonmar
Priority: normal Milestone: 7.2.1
Component: libraries (other) Version: 7.0.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Ketil Malde  discovered a stack overflow in the newArray method of a TArray

The attached patch fixes it by replacing replicateM, which causes the stackoverflow, with the custom rep which doesn't.

Attachments

fix_stackoverflow_in_newArray_of_TArray.dpatch Download (3.7 KB) - added by basvandijk 2 years ago.

Change History

Changed 2 years ago by basvandijk

Changed 2 years ago by igloo

  • status changed from new to patch
  • milestone set to 7.2.1

Thanks for the patch, we'll take a look.

Changed 2 years ago by simonmar

  • owner set to simonmar

I'm validating.

Changed 2 years ago by simonmar

  • status changed from patch to closed
  • resolution set to fixed

pushed, thanks!

Note: See TracTickets for help on using tickets.