diff options
author | Jan Kara <[email protected]> | 2022-05-10 12:36:04 +0200 |
---|---|---|
committer | Jan Kara <[email protected]> | 2022-05-10 13:30:32 +0200 |
commit | c1ad35dd0548ce947d97aaf92f7f2f9a202951cf (patch) | |
tree | 8c521e3875bf2837889b9a7df519363ebe013870 /tools/perf/scripts/python | |
parent | 846a3351ddfe4a86eede4bb26a205c3f38ef84d3 (diff) |
udf: Avoid using stale lengthOfImpUse
udf_write_fi() uses lengthOfImpUse of the entry it is writing to.
However this field has not yet been initialized so it either contains
completely bogus value or value from last directory entry at that place.
In either case this is wrong and can lead to filesystem corruption or
kernel crashes.
Reported-by: butt3rflyh4ck <[email protected]>
CC: [email protected]
Fixes: 979a6e28dd96 ("udf: Get rid of 0-length arrays in struct fileIdentDesc")
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions