hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
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) {