- Notifications
You must be signed in to change notification settings - Fork4.9k
Commita55a75f
committed
MemSet() must not cast its pointer argument to int32* until after it has
checked that the pointer is actually word-aligned. Casting a non-alignedpointer to int32* is technically illegal per the C spec, and some recentversions of gcc actually generate bad code for the memset() when givensuch a pointer. Per report from Andrew Morrow.1 parent84e5ce7 commita55a75f
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
560 | 560 |
| |
561 | 561 |
| |
562 | 562 |
| |
563 |
| - | |
| 563 | + | |
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 |
| - | |
| 567 | + | |
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 | 571 |
| |
572 |
| - | |
| 572 | + | |
| 573 | + | |
573 | 574 |
| |
574 | 575 |
| |
575 | 576 |
| |
576 | 577 |
| |
577 |
| - | |
| 578 | + | |
578 | 579 |
| |
579 | 580 |
| |
580 | 581 |
| |
|
0 commit comments
Comments
(0)