aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2024-10-02 14:51:50 -0700
committerJakub Kicinski <[email protected]>2024-10-03 15:32:03 -0700
commit8b3e26677bc64d42d2f38d9abc8dccc09d8a4259 (patch)
tree45fdf74fbb91eaefa3614816c319c50031a3eb75 /tools/perf/scripts/python/flamegraph.py
parentf66ebf37d69cc700ca884c6a18c2258caf8b151b (diff)
lib: packing: refuse operating on bit indices which exceed size of buffer
While reworking the implementation, it became apparent that this check does not exist. There is no functional issue yet, because at call sites, "startbit" and "endbit" are always hardcoded to correct values, and never come from the user. Even with the upcoming support of arbitrary buffer lengths, the "startbit >= 8 * pbuflen" check will remain correct. This is because we intend to always interpret the packed buffer in a way that avoids discontinuities in the available bit indices. Signed-off-by: Vladimir Oltean <[email protected]> Tested-by: Jacob Keller <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/20241002-packing-kunit-tests-and-split-pack-unpack-v2-1-8373e551eae3@intel.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions