Olli Etuaho
f1cf5e6309
Prevent stack overflow in macro expansion
...
Add a configurable limit for how many nested MacroExpander objects can
be created in the preprocessor, so that stack overflow can be
prevented in case of malicious shaders. By default the limit is set to
1000. In unit tests the limit is set lower to make the test run
faster.
Includes refactoring of most of the preprocessor tests so that they
use utility functions provided by the test class instead of repeating
the same code for initializing the preprocessor.
BUG=angleproject:1600
TEST=angle_unittests
Change-Id: I23b5140d9f2dc52df96111650db63150f7238494
Reviewed-on: https://chromium-review.googlesource.com/413986
Commit-Queue: Olli Etuaho <[email protected] >
Reviewed-by: Corentin Wallez <[email protected] >
2016-11-23 19:05:08 +00:00
Corentin Wallez
2728f99229
Make unittest #includes start from src
...
This is will help avoid adding many include directories for the GN
build.
BUG=angleproject:929
Change-Id: If8f7e98526df3560b8e410ec86271a2da0c6889d
Reviewed-on: https://chromium-review.googlesource.com/296480
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
Tested-by: Corentin Wallez <[email protected] >
2015-09-01 14:17:53 +00:00
Jamie Madill
559a2e8cdc
Move the ANGLE tests project to src/
...
*re-re-land with fix for Chrome's angle tests*
BUG=angleproject:945
Change-Id: I3c64e2edc776c299791440f65f22450855eb6dfa
Reviewed-on: https://chromium-review.googlesource.com/260448
Tested-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
2015-03-16 21:38:50 +00:00
Jamie Madill
96e3f556d6
Revert "Move the ANGLE tests project to src/"
...
Still causing build issues on Chrome.
This reverts commit 64a3b2a92f .
Change-Id: I8d40fe3dfd0a877343357153a02b8ef66d571c64
Reviewed-on: https://chromium-review.googlesource.com/260425
Reviewed-by: Jamie Madill <[email protected] >
Tested-by: Jamie Madill <[email protected] >
2015-03-16 21:24:56 +00:00
Jamie Madill
64a3b2a92f
Move the ANGLE tests project to src/
...
*re-land with fix for Chromium build*
BUG=angleproject:945
Change-Id: I82bff1760e681987fb26e479734aa62fb845898a
Reviewed-on: https://chromium-review.googlesource.com/260362
Tested-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
2015-03-16 21:02:51 +00:00
Jamie Madill
5491fe6667
Revert "Move the ANGLE tests project to src/"
...
Causing build break in Chromium.
This reverts commit 71c2d85c4a .
Change-Id: Iedf001c1f4c60a759f69009610fbce978d193d17
Reviewed-on: https://chromium-review.googlesource.com/260370
Reviewed-by: Jamie Madill <[email protected] >
Tested-by: Jamie Madill <[email protected] >
2015-03-16 17:59:48 +00:00
Jamie Madill
71c2d85c4a
Move the ANGLE tests project to src/
...
BUG=angleproject:945
Change-Id: I2eb44ac43f65b916ddd838d39e6aae62580d7fa0
Reviewed-on: https://chromium-review.googlesource.com/258903
Tested-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
Reviewed-by: Brandon Jones <[email protected] >
2015-03-16 17:34:40 +00:00