File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,17 @@ using namespace Qt::StringLiterals;
110
110
they advertise the extension or offer OpenGL ES 3.0. In this case program
111
111
binary support will be disabled.
112
112
113
+ \section1 Security Considerations
114
+
115
+ All data consumed by QOpenGLShaderProgram is expected to be trusted content.
116
+ Shader source code is passed, possibly after minimal modifications, on to
117
+ the underlying OpenGL implementation's compiler, which is a black box from
118
+ Qt's perspective.
119
+
120
+ \warning Application developers are advised to carefully consider the
121
+ potential implications before passing in user-provided content to functions
122
+ such as addShaderFromSourceFile().
123
+
113
124
\sa QOpenGLShader
114
125
*/
115
126
@@ -126,6 +137,15 @@ using namespace Qt::StringLiterals;
126
137
QOpenGLShader and QOpenGLShaderProgram shelter the programmer from the details of
127
138
compiling and linking vertex and fragment shaders.
128
139
140
+ All data consumed by QOpenGLShader is expected to be trusted content. Shader
141
+ source code is passed, possibly after minimal modifications, on to the
142
+ underlying OpenGL implementation's compiler, which is a black box from Qt's
143
+ perspective.
144
+
145
+ \warning Application developers are advised to carefully consider the
146
+ potential implications before passing in user-provided content to functions
147
+ such as compileSourceFile().
148
+
129
149
\sa QOpenGLShaderProgram
130
150
*/
131
151
You can’t perform that action at this time.
0 commit comments