diff options
| author | 2026-09-26 12:29:15 +0800 | |
|---|---|---|
| committer | 2026-10-02 12:54:49 +0200 | |
| commit | 9f3d3b4b5300124416d87e71280a8fea6a60f6c9 (patch) | |
| tree | 1cf183a03703a02ff2a796a2892c682d2ff78673 /scripts/Makefile.thinlto | |
| parent | isofs: report the Joliet name length in statfs (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
