summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/KerneloopsSysLog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Plugins/KerneloopsSysLog.cpp')
-rw-r--r--lib/Plugins/KerneloopsSysLog.cpp2
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;
}