diff options
Diffstat (limited to 'rpmio/rpmrpc.c')
-rw-r--r-- | rpmio/rpmrpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index de21d8876..9f3be35d7 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -903,6 +903,7 @@ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall, /* XXX FIXME: realloc ftpBuf if < ~128 chars remain */ if ((ftpBufAlloced - bufLength) < (1024+80)) { ftpBufAlloced <<= 2; + assert(ftpBufAlloced < (8*1024*1024)); ftpBuf = xrealloc(ftpBuf, ftpBufAlloced); } s = se = ftpBuf + bufLength; |