Only fill total_size in CheckBufferOverrun::checkFunctionParameter when it's useful.
Merge pull request #327 from simartin/only_fill_if_needed

Only fill total_size in CheckBufferOverrun::checkFunctionParameter when useful