RCFactory: Solve stack too deep for getMarketInfo() #41
Labels
1 (Low Risk)
bug
Something isn't working
Resolved
Used when a fix has been implemented.
sponsor confirmed
Handle
hickuphh3
Vulnerability details
Impact
The
marketInfoResults
is a parameter used bygetMarketInfo()
to determine the length of results to return. As thesetMarketInfoResults()
comments state, "(it) would be better to pass this as a parameter in getMarketInfo.. however we are limited because of stack too deep errors".This limitation can be overcome by defining the return array variables as the function output, as suggested below.
The need for
marketInfoResults
and its setter function is then made redundant, whilst making querying results of possibly varying lengths more convenient.Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: