hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/udf/unicode.c
....@@ -247,7 +247,7 @@
247247 }
248248
249249 if (translate) {
250
- if (str_o_len <= 2 && str_o[0] == '.' &&
250
+ if (str_o_len > 0 && str_o_len <= 2 && str_o[0] == '.' &&
251251 (str_o_len == 1 || str_o[1] == '.'))
252252 needsCRC = 1;
253253 if (needsCRC) {