Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed buffer overflow caused by an excessive number of invalid reques…
…ts with multiple logs.
  • Loading branch information
allinurl committed Nov 24, 2021
1 parent 5bafe8a commit 9774249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gstorage.c
Expand Up @@ -551,7 +551,7 @@ count_invalid (GLog * glog, const char *line) {
LOG_INVALID (("%s", line));
}

if (glog->items->errstr && glog->invalid < MAX_LOG_ERRORS) {
if (glog->items->errstr && glog->log_erridx < MAX_LOG_ERRORS) {
glog->errors[glog->log_erridx++] = xstrdup (glog->items->errstr);
}
}
Expand Down

0 comments on commit 9774249

Please sign in to comment.