Skip to content

isofs: tie the name conversion buffer to its bound

Matthias Goergens linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2isofs: size the name conversion buffer from a named constantfs/isofs/dir.c fs/isofs/isofs.h fs/isofs/joliet.c +2 more+29 -31 reply
2/2isofs: bound the Joliet iocharset conversion by the output bufferfs/isofs/joliet.c+12 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] isofs: tie the name conversion buffer to its bound

Two cleanups around the scratch buffer isofs_readdir() and isofs_lookup() hand to the name converters. No functional change; the first patch's assertions hold on the current code.

Found while looking at something else: get_joliet_filename() has been passing PAGE_SIZE as its output bound since b2eb2e288604 shrank the buffer to 1024, which is safe only because de->name_len is a single byte. That seemed worth writing down in a form the compiler checks.

Matthias Goergens (2):
isofs: size the name conversion buffer from a named constant
isofs: bound the Joliet iocharset conversion by the output buffer

 fs/isofs/dir.c    |  9 ++++++++-
 fs/isofs/isofs.h  |  9 +++++++++
 fs/isofs/joliet.c | 25 ++++++++++++++++++++-----
 fs/isofs/namei.c  |  2 +-
 fs/isofs/rock.c   |  3 +++
 5 files changed, 41 insertions(+), 7 deletions(-)

base-commit: 40288c9206c17eb66a603262e06a58d300d0f279

Signature · 1 line
2.55.0