Fix invalid use of stack memory (#23758)
Fix invalid use of stack memory (#23758)

* Fix invalid use of stack memory

wtgodbe/coreclr,wtgodbe/coreclr,poizan42/coreclr,wtgodbe/coreclr,poizan42/coreclr,cshung/coreclr,poizan42/coreclr,poizan42/coreclr,cshung/coreclr,wtgodbe/coreclr,krk/coreclr,cshung/coreclr,wtgodbe/coreclr,krk/coreclr,krk/coreclr,cshung/coreclr,cshung/coreclr,krk/coreclr,krk/coreclr,cshung/coreclr,wtgodbe/coreclr,poizan42/coreclr,krk/coreclr,poizan42/coreclr