don't forget to increment loop var; infinite loops spotted by sthen@
authorotto <otto@openbsd.org>
Thu, 1 Feb 2018 11:14:23 +0000 (11:14 +0000)
committerotto <otto@openbsd.org>
Thu, 1 Feb 2018 11:14:23 +0000 (11:14 +0000)
libexec/ld.so/malloc.c

index dc75dbb..7a58c6c 100644 (file)
@@ -434,6 +434,7 @@ unmap(struct dir_info *d, void *p, size_t sz, int junk)
                                        break;
                                }
                        }
+                       i++;
                }
        }
        for (i = 0; ; i++) {