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:57:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 13:45:21 +0200
commit36c39220129e4048b6810dc732b49b4f23f2dcee (patch)
tree4c74b5fbcb506ca4f3ab1e44554266751f025529 /tools/perf/scripts/python/export-to-postgresql.py
parentvc_screen: eliminate ifdefs from vcs_write_buf (diff)
downloadwireguard-linux-36c39220129e4048b6810dc732b49b4f23f2dcee.tar.xz
wireguard-linux-36c39220129e4048b6810dc732b49b4f23f2dcee.zip
vc_screen: sanitize types in vcs_read
* pos is derived from the passed ppos, so make it long enough, i.e. loff_t * attr and uni_mode are booleans, so... * size is limited by vcs_size() which returns an int * read, p, orig_count and this_round are always ">= 0" and "< size", so uint is enough * row, col, and max_col are derived from vc->vc_cols (uint) and p, so make them uint too * tmp_count is derived from this_round, so make it an uint too. * use u16 * for org (instead of unsigned short *). No need to initialize org too. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200818085706.12163-10-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