fixed two critical security bugs (coverty)
pass inArgs, outArgs by reference