Don't access line[-1] for a zero-length "line" from fgets.
A NUL byte at beginning of input, or just after a newline would provoke an invalid buf[-1] access (possible segfault). * src/libvirt.c (virConnectAuthCallbackDefault):
Showing
想要评论请 注册 或 登录