wiremod / wire-extras

Community Contributed Wire Extras Repository (formerly UWSVN). These are addons which may be of use to wiremodders but do not undergo the same level of critique that the official repos do.
Apache License 2.0
83 stars 66 forks source link

Added a size limit to the dynamic memory. #128

Closed WallopingEwe closed 5 months ago

WallopingEwe commented 5 months ago

Clamped the size of the memory with the lowest and highest value of the slider in game as I was able to request as much as I wanted and cause an overflow.

Denneisk commented 5 months ago

I was going to complain that the clamping should be done by the cvar instead.

thegrb93 commented 5 months ago

Doesn't seem to be one, but it could be added if someone needs more memory.

Denneisk commented 5 months ago

I meant as in, cvars have a feature for a min/max value so that could be used, but now that you mention it, the upper limit should be defined by a cvar.