summaryrefslogtreecommitdiff
path: root/WPRoutines.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-01-06 21:26:30 +0000
committerDave Hibberd <hibby@debian.org>2025-01-06 21:26:30 +0000
commita5c4d344ccf55a47fd6bc91a327073915b6c281e (patch)
tree8876dc2346d3fed0db3989e6428205469b311c5e /WPRoutines.c
parentd7e92752bb30e0b197e940d978bfa635e27bead0 (diff)
New upstream version 6.0.24.56+repackupstream/6.0.24.56+repack
Diffstat (limited to 'WPRoutines.c')
-rw-r--r--WPRoutines.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/WPRoutines.c b/WPRoutines.c
index ac39a5b..0b8e315 100644
--- a/WPRoutines.c
+++ b/WPRoutines.c
@@ -946,6 +946,9 @@ VOID ProcessWPMsg(char * MailBuffer, int Size, char * FirstRLine)
WPLen = ptr2 - ptr1;
+ if (WPLen > 128)
+ return;
+
if ((memcmp(ptr1, "On ", 3) == 0) && (WPLen < 200))
{
char * Date;
@@ -1030,7 +1033,7 @@ it will not be replaced. This flag will be used in case the WP update messages a
WPDate -= (time_t)_MYTIMEZONE;
TypeString = strlop(Call, '/');
- if (strlen(Call) < 3 || strlen(Call) > 9)
+ if (strlen(Call) < 3 || strlen(Call) > 6)
return;
if (TypeString)