in reply to Uncontrolled Memory Allocation
Update: How did you solve the problem 9 months ago when you posted Uncontrolled Memory Allocation Error? /Update
The code looks relatively ok to me too. Concerning your attempted workaround, that's only checking the length of each line, not the whole file. There are lots of ways one could ensure the file is not longer than a certain size, like stat, -X, $. combined with checking the length of each line, checking the size of the hash, ... but I don't know which of these this "Checkmarx" tool will accept.
Repeating myself from ~9 months ago: Checkmarx is giving you the error, so Checkmarx also needs to tell you how to fix it.
|
---|