fsmonitor: coverity - fix variable access (beyond)
This commit is contained in:
parent
36254905d7
commit
ef4cebdb92
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ fsmonitor_thread ( void* p )
|
|||
while ( i < c ) {
|
||||
ev = (struct inotify_event*)&buf[i];
|
||||
i += sizeof(struct inotify_event) + ev->len;
|
||||
if (i > c)
|
||||
break;
|
||||
tvhtrace("fsmonitor", "event fd %d name %s mask %08X",
|
||||
ev->wd, ev->len ? ev->name : NULL, ev->mask);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue