diff options
| author | Matthias Goergens <matthias.goergens@gmail.com> | 2026-09-26 12:29:15 +0800 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-10-02 12:54:49 +0200 |
| commit | 9f3d3b4b5300124416d87e71280a8fea6a60f6c9 (patch) | |
| tree | 1cf183a03703a02ff2a796a2892c682d2ff78673 /tools/perf/scripts/python | |
| parent | 1885d252b3a944997701db0a4df89761741ed43f (diff) | |
| download | linux-9f3d3b4b5300124416d87e71280a8fea6a60f6c9.tar.gz linux-9f3d3b4b5300124416d87e71280a8fea6a60f6c9.zip | |
isofs: pass the name buffer size to get_rock_ridge_filename()
get_rock_ridge_filename() assembles a name from one or more NM entries
into a buffer allocated by its caller. It is not told how big that
buffer is, and instead stops adding NM entries once the name would
exceed NAME_MAX, relying on the callers' buffer being larger.
Pass the size in and check against it. Both callers pass NAME_MAX + 1,
so the behaviour is unchanged: an NM entry that would take the name
past 255 bytes is dropped, together with any that follow, and the
entries before it are returned.
Signed-off-by: Matthias Goergens <matthias.goergens@gmail.com>
Link: https://patch.msgid.link/20260926042916.3277409-4-matthias.goergens@gmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
