diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-09-28 22:31:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-09-30 04:56:53 +0300 |
commit | 69508d43334e3b09c344f662272bcf24a5b508ed (patch) | |
tree | 750402615914273822bdfbb85243e0555a421e1c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ef91abfb20c743c0cbe98e4351cd0ce05c81340a (diff) | |
download | linux-69508d43334e3b09c344f662272bcf24a5b508ed.tar.xz |
net_sched: Use struct_size() and flex_array_size() helpers
Make use of the struct_size() and flex_array_size() helpers instead of
an open-coded version, in order to avoid any potential type mistakes
or integer overflows that, in the worse scenario, could lead to heap
overflows.
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210928193107.GA262595@embeddedor
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions