/
PRIORITY_TESTS
108 lines (87 loc) · 2.11 KB
/
PRIORITY_TESTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Top priority functions to test are functions that:
1. deal with array indexing
- may cause segfaults
- may read privileged data
- may write to process memory
2. read data from the OpenGL context
- require SOP checking
== List of methods ==
[Legend: + = test exists, - = no test]
== Methods that have tests ==
bufferData
+ with array
+ with bad args
bufferSubData
+ with array
+ with bad args
copyTexImage2D
+ normally
+ with bad args (bad dims, bad type, bad border, bad level)
copyTexSubImage2D
+ normally
+ with bad args (bad offset, bad dims, bad type, bad level)
drawArrays
+ with vertex arrays
+ with buffers
+ with bad args
drawElements
+ with vertex arrays
+ with buffers
+ with bad args (oob count & offset, oob indices)
getImageData
+ normal
+ with GL canvas that has a non-SOP texture uploaded
+ bad args (coords outside viewport, zero size)
readPixels
+ normal
+ with GL canvas that has a non-SOP texture uploaded
+ bad args (coords outside viewport, zero size, bad type)
texImage2D
+ with NULL
+ with array of ints
+ with bad args (bad dims, bad type, bad border)
texImage2DHTML
+ with canvas
+ with img
+ with bad args (non-image element)
+ with non-SOP img
+ with non-SOP canvas (i.e. canvas with non-SOP img)
texSubImage2D
+ with array of ints
+ with bad args (bad offset, bad dims, bad type, bad level)
texSubImage2DHTML
+ with canvas
+ with img
+ with bad args (bad level, non-image element, bad offset)
+ with non-SOP img
+ with non-SOP canvas (i.e. canvas with non-SOP img)
uniformf
+ with vec
+ with scalar
+ with OOB args
+ with bad uniform id
uniformi
+ with vec
+ with scalar
+ with OOB args
+ with bad uniform id
uniformMatrix
+ with 2x2, 3x3, 4x4 matrices
+ with OOB args
+ with bad uniform id
vertexAttrib
+ normal
+ with oob args
+ with bad attrib id
vertexAttribPointer
+ with array
+ with buffer offset
+ with bad offset
+ with bad attrib id
GLSL
+ OOB access to uniform
+ OOB access to const array
+ OOB access to attrib
+ infinite loops
+ unused attribs
+ unused uniforms