Thread (9 messages) 9 messages, 2 authors, 2021-08-03

Re: [PATCH v3 11/12] misc/lsattr: check whether path is NULL in lsattr_dir_proc()

From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-08-03 02:36:02

On Wed, Jul 28, 2021 at 09:56:48AM +0800, wuguanghao wrote:
From: Zhiqiang Liu <redacted>

In lsattr_dir_proc(), if malloc() return NULL, it will cause
a segmentation fault problem.

Signed-off-by: Zhiqiang Liu <redacted>
Signed-off-by: Wu Guanghao <redacted>
Thanks, applied.

Note that fputs() does not print a trailing newline (unlike puts()).
So I fixed up the error message to include a newline character at the
end.

				- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help