diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-12-17 03:50:25 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-12-17 04:01:34 -0500 |
commit | 881d05076a38a799907206bf91f33a73ca3683bf (patch) | |
tree | 28429122e76492cc053f4c1a2191e6cf8f0dd6e0 | |
parent | cabced1f9fd6028067a1a3507a306b5a7c76fda7 (diff) | |
download | lighttpd-git-881d05076a38a799907206bf91f33a73ca3683bf.tar.gz |
[core] attempt to quiet some coverity warnings
-rw-r--r-- | src/stat_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c index 26cd457e..97178a62 100644 --- a/src/stat_cache.c +++ b/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) |