this alloc related one seemed to be a false positive  change the loop to only access aptr and store a in the loop it is fine  within the resize call and you still get a warning this is involved but if you split the changes  then you could post a bug 