Browse Source

[core] attempt to quiet some coverity warnings

master
Glenn Strauss 1 year ago
parent
commit
881d05076a
  1. 1
      src/stat_cache.c

1
src/stat_cache.c

@ -374,6 +374,7 @@ static void stat_cache_handle_fdevent_in(stat_cache_fam *scf)
struct inotify_event * const in =
(struct inotify_event *)((uintptr_t)buf + i);
uint32_t len = in->len;
if (len > sizeof(buf)) break; /*(should not happen)*/
i += sizeof(struct inotify_event) + len;
if (i > rd) break; /*(should not happen (partial record))*/
if (in->mask & IN_CREATE)

Loading…
Cancel
Save