Commit c91a36e
Translator: Validate negative index after comma
Expressions such as array[something,-1] where not validated because the
index (something,-1) is not a constant, but they can be because only the
right hand side of comma matters.
Bug: chromium:465696600
Change-Id: I0f8dd115b4c3adefb81e9bafe12ee453bb96ebd1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/7224467
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>1 parent e5f0293 commit c91a36e
File tree
2 files changed
+73
-14
lines changed- src
- compiler/translator
- tests/gl_tests
2 files changed
+73
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6649 | 6649 | | |
6650 | 6650 | | |
6651 | 6651 | | |
6652 | | - | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
| 6655 | + | |
| 6656 | + | |
| 6657 | + | |
| 6658 | + | |
| 6659 | + | |
6653 | 6660 | | |
6654 | | - | |
6655 | | - | |
6656 | | - | |
6657 | | - | |
6658 | | - | |
6659 | | - | |
6660 | | - | |
6661 | | - | |
| 6661 | + | |
| 6662 | + | |
6662 | 6663 | | |
6663 | | - | |
| 6664 | + | |
| 6665 | + | |
| 6666 | + | |
| 6667 | + | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
| 6675 | + | |
| 6676 | + | |
| 6677 | + | |
| 6678 | + | |
| 6679 | + | |
| 6680 | + | |
| 6681 | + | |
| 6682 | + | |
| 6683 | + | |
| 6684 | + | |
| 6685 | + | |
6664 | 6686 | | |
6665 | | - | |
| 6687 | + | |
| 6688 | + | |
| 6689 | + | |
6666 | 6690 | | |
6667 | | - | |
| 6691 | + | |
6668 | 6692 | | |
| 6693 | + | |
| 6694 | + | |
6669 | 6695 | | |
| 6696 | + | |
| 6697 | + | |
6670 | 6698 | | |
6671 | | - | |
6672 | 6699 | | |
6673 | 6700 | | |
6674 | | - | |
6675 | 6701 | | |
6676 | 6702 | | |
6677 | 6703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4712 | 4712 | | |
4713 | 4713 | | |
4714 | 4714 | | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
4715 | 4748 | | |
4716 | 4749 | | |
4717 | 4750 | | |
| |||
0 commit comments