The code that computes the size of an access to an object in -Wuninitialized is limited to declared objects and so doesn't apply to allocated objects, and doesn't correctly account for an offset into the object and the access size. This causes false positives. The attached fix tested on x86_64-linux corrects this. Martin