Opened 9 years ago

Closed 9 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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by basvandijk

comment:1 Changed 9 years ago by igloo

Milestone: 7.2.1
Status: newpatch

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

comment:2 Changed 9 years ago by simonmar

Owner: set to simonmar

I'm validating.

comment:3 Changed 9 years ago by simonmar

Resolution: fixed
Status: patchclosed

pushed, thanks!

Note: See TracTickets for help on using tickets.