Opened 3 years ago

Closed 3 years ago

#5042 closed bug (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by basvandijk

comment:1 Changed 3 years ago by igloo

  • Milestone set to 7.2.1
  • Status changed from new to patch

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

comment:2 Changed 3 years ago by simonmar

  • Owner set to simonmar

I'm validating.

comment:3 Changed 3 years ago by simonmar

  • Resolution set to fixed
  • Status changed from patch to closed

pushed, thanks!

Note: See TracTickets for help on using tickets.