Files
react-native/packages
Nick Gerleman 810c2051ee Fix "swapLeftAndRight" unsafe static_cast (#42721)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42721

If left and right are swapped, this code assumes every yoga layoutable shadownode is a view, and mutates its props as if they were ViewProps. This is not safe, and could lead to memory corruption.

Changelog: [Internal]

Reviewed By: rozele

Differential Revision: D53213652

fbshipit-source-id: c43e0f80fdd5889761317c1243ccc0ab392e3443
2024-02-01 00:33:54 -08:00
..