aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-11 14:47:24 -0500
committerGitHub <noreply@github.com>2017-05-11 14:47:24 -0500
commitc277beab2b9c3294ea69c6088cd0dc3b1665717e (patch)
tree68bb682e9911ff6e8251d03e8e312b05f56c4235 /components/script/dom/htmlformelement.rs
parente196776c2477f5f204ce1333bd15070afbf9a7f6 (diff)
parent273bcfbd8e817af598fca121b4794d2d9977c2e9 (diff)
downloadservo-c277beab2b9c3294ea69c6088cd0dc3b1665717e.tar.gz
servo-c277beab2b9c3294ea69c6088cd0dc3b1665717e.zip
Auto merge of #16816 - MortimerGoro:unsafe_layout_data_cast, r=SimonSapin
Fix unsafe casting between PersistentLayoutData and PartialPersistentLayoutData <!-- Please describe your changes on the following line: --> PersistentLayoutData and PartialPersistentLayoutData castings in Layout component assume that they have the same base raw address. This is unsafe because field orders is not guaranteed by default, and it's causing some SEGV crashes on Android indeed (https://github.com/servo/servo/issues/16647) Add a C representation to guarantee that the order of the fields and the safe casting. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #16647 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16816) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
0 files changed, 0 insertions, 0 deletions