mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix segfaults when accessing a mailbox with 512 messages.
PR: ports/28099 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
This commit is contained in:
parent
e977d4f8a5
commit
ab2c441b2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44446
1 changed files with 12 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
--- cucipop.c.bak Wed May 13 20:57:39 1998
|
||||
+++ cucipop.c Sun Mar 28 17:08:28 1999
|
||||
@@ -45,7 +45,7 @@
|
||||
--- cucipop.c.orig Tue Jun 26 17:51:11 2001
|
||||
+++ cucipop.c Tue Jun 26 17:51:50 2001
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "hsort.h"
|
||||
|
||||
#ifdef APOP
|
||||
|
@ -9,3 +9,12 @@
|
|||
#endif
|
||||
|
||||
#define MD5_DIGLEN 16
|
||||
@@ -314,7 +314,7 @@
|
||||
|
||||
static void addblock(const off_t start)
|
||||
{ if(msgs_filled==msgs_max&&
|
||||
- !(msgs=realloc(msgs,(msgs_max+=GROWSTEP)*sizeof*msgs)))
|
||||
+ !(msgs=realloc(msgs,((msgs_max+=GROWSTEP)+1)*sizeof*msgs)))
|
||||
outofmem();
|
||||
msgs[msgs_filled].order=msgs_filled;msgs[msgs_filled].start=start;
|
||||
msgs[msgs_filled].virtsize=0;msgs[msgs_filled++].deleted=0;
|
||||
|
|
Loading…
Add table
Reference in a new issue