buffer allocation size fixes for invocation arguments