Apply suggestions from code review

Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
Tom Hvitved 2020-05-11 11:42:50 +02:00 коммит произвёл GitHub
Родитель 948c2f7f7e
Коммит c837ab7d1a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -18,7 +18,7 @@ The following changes in version 1.25 affect C/C++ analysis in all applications.
* The data-flow library has been improved, which affects most security queries by potentially
adding more results. Flow through functions now takes nested field reads/writes into account.
For example, the library is able to track flow from `"taint"` to `sink()` via the method
For example, the library is able to track flow from `taint()` to `sink()` via the method
`getf2f1()` in
```c
struct C {
@ -27,7 +27,7 @@ The following changes in version 1.25 affect C/C++ analysis in all applications.
struct C2
{
C f2;
C f2;
int getf2f1() {
return f2.f1; // Nested field read
@ -35,7 +35,7 @@ The following changes in version 1.25 affect C/C++ analysis in all applications.
void m() {
f2.f1 = taint();
sink(getf2f1()); // NEW: "taint" reaches here
sink(getf2f1()); // NEW: taint() reaches here
}
};
```
```