Mostly checks to avoid overflows. There is one NULL check that I added
early on as it was really easy to trigger. It's probably less useful now
that there are a bunch of checks before it that should stop stupid things
like trying to malloc a negative number...
Mostly checks to avoid overflows. There is one NULL check that I added early on as it was really easy to trigger. It's probably less useful now that there are a bunch of checks before it that should stop stupid things like trying to malloc a negative number...