diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-20 16:35:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-20 16:35:50 +0200 |
commit | 9123dea526f4b03161877aae97ef806a6687753d (patch) | |
tree | 23737972072ebc66f69ff49773a11a242d98573a /lib | |
parent | e6b1174bd70e5f4442b6decfd5e72555a6c2661a (diff) | |
download | abrt-9123dea526f4b03161877aae97ef806a6687753d.tar.gz abrt-9123dea526f4b03161877aae97ef806a6687753d.tar.xz abrt-9123dea526f4b03161877aae97ef806a6687753d.zip |
KerneloopsSysLog: check line length to be >= 4 before looking for "Abrt"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Plugins/KerneloopsSysLog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp index 4f720d2e..b1171cf6 100644 --- a/lib/Plugins/KerneloopsSysLog.cpp +++ b/lib/Plugins/KerneloopsSysLog.cpp @@ -181,7 +181,7 @@ int CSysLog::FillLinePointers(char *buffer, size_t buflen) *c9 = '\0'; /* turn the \n into a string termination */ /* if we see our own marker, we know we submitted everything upto here already */ - if (memmem(linepointer, len, "Abrt", 4)) { + if (len >= 4 && memmem(linepointer, len, "Abrt", 4)) { linecount = 0; lines_info[0].ptr = NULL; } |