diff options
author | Rob Clark <robdclark@gmail.com> | 2018-09-25 20:54:00 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-10-04 03:24:54 +0300 |
commit | b689a830f5264e3a53307ba468e376e9f95f15e0 (patch) | |
tree | ae96c941ea7706a5f4daa4c4f9a2eeaa03b3816b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9027b8719bd4f46b09c6b9d082715209c17971e2 (diff) | |
download | linux-b689a830f5264e3a53307ba468e376e9f95f15e0.tar.xz |
drm/msm/rd: fix crash with long process cmdlines
The [v]snprintf() functions return the size that *would have* been
written into the buffer, rather than the size *actually* written.
Which results in us trying to memcpy() past the end of the stack.
What we really want is [v]scnprintf().
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions