ucx icon indicating copy to clipboard operation
ucx copied to clipboard

Change path max stack allocation to heap

Open michal-shalev opened this issue 1 year ago • 0 comments

What?

This PR changes all stack allocations of char arrays sized PATH_MAX to heap allocations.

Why?

Customers with limited stack sizes have recently experienced stack overflow issues when running UCX. Moving these allocations to the heap prevents such overflows.

How?

Heap allocations replace stack allocations for char arrays of size PATH_MAX.

michal-shalev avatar Sep 05 '24 11:09 michal-shalev