Skip to content

Commit ae66354

Browse files
committed
Include parameters when quoting extensible predicate name
1 parent f384611 commit ae66354

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-cpp.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ This example shows how the CPP query pack models the return value from the ``rea
7777
7878
boost::asio::read_until(socket, recv_buffer, '\0', error);
7979
80-
We need to add a tuple to the ``sourceModel``\(namespace, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
80+
We need to add a tuple to the ``sourceModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
8181

8282
.. code-block:: yaml
8383
@@ -113,7 +113,7 @@ This example shows how the CPP query pack models the second argument of the ``bo
113113
114114
boost::asio::write(socket, send_buffer, error);
115115
116-
We need to add a tuple to the ``sinkModel``\(namespace, type, subtypes, name, signature, ext, input, kind, provenance) extensible predicate by updating a data extension file.
116+
We need to add a tuple to the ``sinkModel(namespace, type, subtypes, name, signature, ext, input, kind, provenance)`` extensible predicate by updating a data extension file.
117117

118118
.. code-block:: yaml
119119
@@ -149,7 +149,7 @@ This example shows how the CPP query pack models flow through a function for a s
149149
150150
boost::asio::write(socket, boost::asio::buffer(send_str), error);
151151
152-
We need to add tuples to the ``summaryModel``\(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
152+
We need to add tuples to the ``summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
153153

154154
.. code-block:: yaml
155155
@@ -192,7 +192,7 @@ This function escapes special characters in a string for use in an SQL statement
192192
mysql_real_escape_string(mysql, escaped_name, name, strlen(name)); // The escaped_name is safe for SQL injection.
193193
sprintf(query_buffer, query, escaped_name);
194194
195-
We need to add a tuple to the ``barrierModel``\(namespace, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
195+
We need to add a tuple to the ``barrierModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
196196

197197
.. code-block:: yaml
198198
@@ -232,7 +232,7 @@ Consider a function called ``is_safe`` which returns ``true`` when the data is c
232232
mysql_query(user_input); // This is safe.
233233
}
234234
235-
We need to add a tuple to the ``barrierGuardModel``\(namespace, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance) extensible predicate by updating a data extension file.
235+
We need to add a tuple to the ``barrierGuardModel(namespace, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance)`` extensible predicate by updating a data extension file.
236236

237237
.. code-block:: yaml
238238

docs/codeql/codeql-language-guides/customizing-library-models-for-csharp.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ This is the ``GetStream`` method in the ``TcpClient`` class, which is located in
121121
...
122122
}
123123
124-
We need to add a tuple to the ``sourceModel``\(namespace, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
124+
We need to add a tuple to the ``sourceModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
125125

126126
.. code-block:: yaml
127127
@@ -161,7 +161,7 @@ This pattern covers many of the cases where we need to summarize flow through a
161161
...
162162
}
163163
164-
We need to add tuples to the ``summaryModel``\(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
164+
We need to add tuples to the ``summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
165165

166166
.. code-block:: yaml
167167
@@ -218,7 +218,7 @@ This example shows how the C# query pack models flow through a method for a simp
218218
...
219219
}
220220
221-
We need to add a tuple to the ``summaryModel``\(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
221+
We need to add a tuple to the ``summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
222222

223223
.. code-block:: yaml
224224
@@ -262,7 +262,7 @@ Here we model flow through higher order methods and collection types, as well as
262262
...
263263
}
264264
265-
We need to add tuples to the ``summaryModel``\(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
265+
We need to add tuples to the ``summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
266266

267267
.. code-block:: yaml
268268
@@ -323,7 +323,7 @@ The ``RawUrl`` property returns the raw URL of the current request, which is con
323323
Response.Redirect(url); // This is not a URL redirection vulnerability.
324324
}
325325
326-
We need to add a tuple to the ``barrierModel``\(namespace, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
326+
We need to add a tuple to the ``barrierModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
327327

328328
.. code-block:: yaml
329329
@@ -365,7 +365,7 @@ When the ``IsAbsoluteUri`` property returns ``false``, the URL is relative and t
365365
}
366366
}
367367
368-
We need to add a tuple to the ``barrierGuardModel``\(namespace, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance) extensible predicate by updating a data extension file.
368+
We need to add a tuple to the ``barrierGuardModel(namespace, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance)`` extensible predicate by updating a data extension file.
369369

370370
.. code-block:: yaml
371371
@@ -405,7 +405,7 @@ A neutral model is used to define that there is no flow through a method.
405405
...
406406
}
407407
408-
We need to add a tuple to the ``neutralModel``\(namespace, type, name, signature, kind, provenance) extensible predicate by updating a data extension file.
408+
We need to add a tuple to the ``neutralModel(namespace, type, name, signature, kind, provenance)`` extensible predicate by updating a data extension file.
409409

410410
.. code-block:: yaml
411411

docs/codeql/codeql-language-guides/customizing-library-models-for-go.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This is the ``FormValue`` method of the ``Request`` type which is located in the
122122
}
123123
124124
125-
We need to add a tuple to the ``sourceModel``\(package, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
125+
We need to add a tuple to the ``sourceModel(package, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
126126

127127
.. code-block:: yaml
128128
@@ -164,7 +164,7 @@ This pattern covers many of the cases where we need to summarize flow through a
164164
...
165165
}
166166
167-
We need to add a tuple to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
167+
We need to add a tuple to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
168168

169169
.. code-block:: yaml
170170
@@ -209,7 +209,7 @@ This pattern covers many of the cases where we need to summarize flow through a
209209
...
210210
}
211211
212-
We need to add a tuple to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
212+
We need to add a tuple to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
213213

214214
.. code-block:: yaml
215215
@@ -253,7 +253,7 @@ This pattern covers many of the cases where we need to summarize flow through a
253253
...
254254
}
255255
256-
We need to add tuples to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
256+
We need to add tuples to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
257257

258258
.. code-block:: yaml
259259
@@ -310,7 +310,7 @@ This example shows how the Go query pack models flow through a method for a simp
310310
...
311311
}
312312
313-
We need to add a tuple to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
313+
We need to add a tuple to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
314314

315315
.. code-block:: yaml
316316
@@ -354,7 +354,7 @@ The ``Htmlquote`` function from the beego framework HTML-escapes a string, which
354354
...
355355
}
356356
357-
We need to add a tuple to the ``barrierModel``\(package, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
357+
We need to add a tuple to the ``barrierModel(package, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
358358

359359
.. code-block:: yaml
360360
@@ -395,7 +395,7 @@ Consider a function called ``IsSafe`` which returns ``true`` when the data is co
395395
}
396396
}
397397
398-
We need to add a tuple to the ``barrierGuardModel``\(package, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance) extensible predicate by updating a data extension file.
398+
We need to add a tuple to the ``barrierGuardModel(package, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance)`` extensible predicate by updating a data extension file.
399399

400400
.. code-block:: yaml
401401
@@ -434,7 +434,7 @@ This example shows how we can model a field read as a source of tainted data.
434434
...
435435
}
436436
437-
We need to add a tuple to the ``sourceModel``\(package, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
437+
We need to add a tuple to the ``sourceModel(package, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
438438

439439
.. code-block:: yaml
440440

docs/codeql/codeql-language-guides/customizing-library-models-for-java-and-kotlin.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This is the ``execute`` method in the ``Statement`` class, which is located in t
8787
stmt.execute(query); // The argument to this method is a SQL injection sink.
8888
}
8989
90-
We need to add a tuple to the ``sinkModel``\(package, type, subtypes, name, signature, ext, input, kind, provenance) extensible predicate by updating a data extension file.
90+
We need to add a tuple to the ``sinkModel(package, type, subtypes, name, signature, ext, input, kind, provenance)`` extensible predicate by updating a data extension file.
9191

9292
.. code-block:: yaml
9393
@@ -127,7 +127,7 @@ This is the ``getInputStream`` method in the ``Socket`` class, which is located
127127
...
128128
}
129129
130-
We need to add a tuple to the ``sourceModel``\(package, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
130+
We need to add a tuple to the ``sourceModel(package, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
131131

132132
.. code-block:: yaml
133133
@@ -167,7 +167,7 @@ This pattern covers many of the cases where we need to summarize flow through a
167167
...
168168
}
169169
170-
We need to add tuples to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
170+
We need to add tuples to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
171171

172172
.. code-block:: yaml
173173
@@ -212,7 +212,7 @@ Here we model flow through higher order methods and collection types.
212212
...
213213
}
214214
215-
We need to add tuples to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
215+
We need to add tuples to the ``summaryModel(package, type, subtypes, name, signature, ext, input, output, kind, provenance)`` extensible predicate by updating a data extension file:
216216

217217
.. code-block:: yaml
218218
@@ -271,7 +271,7 @@ This is the ``getName`` method in the ``File`` class, which is located in the ``
271271
...
272272
}
273273
274-
We need to add a tuple to the ``barrierModel``\(package, type, subtypes, name, signature, ext, output, kind, provenance) extensible predicate by updating a data extension file.
274+
We need to add a tuple to the ``barrierModel(package, type, subtypes, name, signature, ext, output, kind, provenance)`` extensible predicate by updating a data extension file.
275275

276276
.. code-block:: yaml
277277
@@ -315,7 +315,7 @@ When the ``isAbsolute`` method returns ``false``, the URI is relative and theref
315315
}
316316
}
317317
318-
We need to add a tuple to the ``barrierGuardModel``\(package, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance) extensible predicate by updating a data extension file.
318+
We need to add a tuple to the ``barrierGuardModel(package, type, subtypes, name, signature, ext, input, acceptingvalue, kind, provenance)`` extensible predicate by updating a data extension file.
319319

320320
.. code-block:: yaml
321321
@@ -356,7 +356,7 @@ A neutral model is used to define that there is no flow through a method.
356356
...
357357
}
358358
359-
We need to add a tuple to the ``neutralModel``\(package, type, name, signature, kind, provenance) extensible predicate by updating a data extension file.
359+
We need to add a tuple to the ``neutralModel(package, type, name, signature, kind, provenance)`` extensible predicate by updating a data extension file.
360360

361361
.. code-block:: yaml
362362

0 commit comments

Comments
 (0)