Bug 6941
Summary: | Slab corruption in BeFS (befs_utf2nls) | ||
---|---|---|---|
Product: | File System | Reporter: | Jens Kilian (jjk) |
Component: | Other | Assignee: | Diego Calleja (diegocg) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | diegocg |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.15 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
Fix BeFS slab corruption
Fix befs_nls2utf aswell |
Description
Jens Kilian
2006-08-01 23:17:48 UTC
Created attachment 8672 [details]
Fix BeFS slab corruption
This patch implements your suggested change - does it looks OK for you?
I'm not sure that befs_nls2utf() needs this change: In that function, maxlen =
3 * in_len, so the output UTF string is three times longer than the incoming
one, which looks like a safety measure. Are there special cases where a UTF
string could be more than three times longer than its equivalent NLS string?
Created attachment 8692 [details]
Fix befs_nls2utf aswell
Patch merged in the main tree (commit 94f563c426a78c97fc2a377315995e6ec8343872), closing bug. |