From: otto Date: Thu, 1 Feb 2018 11:14:23 +0000 (+0000) Subject: don't forget to increment loop var; infinite loops spotted by sthen@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5efa8d23cee8c96ff4ee9b1e4219568e485251f6;p=openbsd don't forget to increment loop var; infinite loops spotted by sthen@ --- diff --git a/libexec/ld.so/malloc.c b/libexec/ld.so/malloc.c index dc75dbbc287..7a58c6c440d 100644 --- a/libexec/ld.so/malloc.c +++ b/libexec/ld.so/malloc.c @@ -434,6 +434,7 @@ unmap(struct dir_info *d, void *p, size_t sz, int junk) break; } } + i++; } } for (i = 0; ; i++) {