isofs: tie the name conversion buffer to its bound
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | isofs: size the name conversion buffer from a named constantfs/ fs/ fs/ +2 more | +29 | 1 reply | |
| 2/2 | isofs: bound the Joliet iocharset conversion by the output bufferfs/ | +12 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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