Message ID | 20200423195159.0VMIQNjo-%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | [merged] coredump-fix-null-pointer-dereference-on-coredump.patch removed from -mm tree | expand |
--- a/fs/coredump.c~coredump-fix-null-pointer-dereference-on-coredump +++ a/fs/coredump.c @@ -211,6 +211,8 @@ static int format_corename(struct core_n return -ENOMEM; (*argv)[(*argc)++] = 0; ++pat_ptr; + if (!(*pat_ptr)) + return -ENOMEM; } /* Repeat as long as we have more pattern to process and more output