PhysX: Fix stack-buffer-overflow in CCD sweep


CCDSweep() loaded lastTm0.p/lastTm1.p with an aligned 16-byte SIMD
load (V3LoadA). PxVec3 p is the last member of the 28-byte
PxTransform, so this load always reads 4 bytes past the end of the
struct. The same function already uses the safe unaligned load
(V3LoadU) for transform0.p/transform1.p a few lines below, so this
was an inconsistency in the vendored code.

This went unnoticed under ASan until CCD started running
unconditionally for every scene and a sphere-vs-box CCD sweep test
was added, both of which first exercise this code path.

Pick-to: 6.12 6.11 6.8
Change-Id: I8c0e6e3e2ff2be2c826c48f0b0dbd5d1f26cbeb1
Reviewed-by: Andrei Yankovich <EndrIIMail@gmail.com>
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
commit4d2ecc717c30eaa600b1adc9d60c8b1df4e48039
parent4d32481dc85a34e72e786b98f587417fa2c1cc0f
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeFri, 7 Aug 2026 09:47:28 +0000