[PATCH v2] qnx4_match: do not over run the buffer

2020-11-23 Thread Anders Larsen
From: Tong Zhang the di_fname may not terminated by '\0', use strnlen to prevent buffer overrun [ 513.248784] qnx4_readdir: bread failed (3718095557) [ 513.250880] == [ 513.251109] BUG: KASAN: use-after-free in strlen+0x1f/0x40

[PATCH v2] qnx4_match: do not over run the buffer

2020-11-21 Thread Tong Zhang
the di_fname may not terminated by '\0', use strnlen to prevent buffer overrun [ 513.248784] qnx4_readdir: bread failed (3718095557) [ 513.250880] == [ 513.251109] BUG: KASAN: use-after-free in strlen+0x1f/0x40 [ 513.251268]