aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-08-18 10:56:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 13:45:21 +0200
commit2665bef49f96df1a541b4e71e7b27bf631f7667c (patch)
treeae13135ba8174c1a18b6f8b3aa3038a04d4ab76c /tools/perf/scripts/python/export-to-postgresql.py
parentvc_screen: rewrite vcs_size to accept vc, not inode (diff)
downloadwireguard-linux-2665bef49f96df1a541b4e71e7b27bf631f7667c.tar.xz
wireguard-linux-2665bef49f96df1a541b4e71e7b27bf631f7667c.zip
vc_screen: sanitize types in vcs_write
* ret can carry error codes, so make it signed, i.e. ssize_t * pos is derived from the passed ppos, so make it long enough, i.e. loff_t * attr is a boolean, so... * size is limited by vcs_size() which returns an int * written, p, orig_count and this_round are always ">= 0" and "< size", so uint is enough * col and max_col are derived from vc->vc_cols (uint) and p, so make them uint too * place con_buf0 and con_buf declaration to a single line Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200818085706.12163-6-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions