mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 19:50:39 +00:00
lxc_monitor: make sure msg.name is null terminated (bug found by coverity)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
c928f41fc0
commit
b4e4ca49c7
@ -97,6 +97,7 @@ int main(int argc, char *argv[])
|
||||
if (lxc_monitor_read(fd, &msg) < 0)
|
||||
return -1;
|
||||
|
||||
msg.name[sizeof(msg.name)-1] = '\0';
|
||||
if (regexec(&preg, msg.name, 0, NULL, 0))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user