forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
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) {