Page MenuHomeFreeBSD

D30945.diff
No OneTemporary

D30945.diff

Index: lib/libpfctl/libpfctl.c
===================================================================
--- lib/libpfctl/libpfctl.c
+++ lib/libpfctl/libpfctl.c
@@ -748,6 +748,9 @@
size_t new_size = nv.size +
(nv.size * states->count / (found_count + 1) * 2);
+ /* Assume at least 2K per state. */
+ new_size = MAX(2048 * states->count, new_size);
+
/* Our buffer is too small. Estimate what we need based
* on how many states fit in the previous allocation
* and how many states there are. Doubled for margin.

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 24, 6:11 PM (15 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37198258
Default Alt Text
D30945.diff (537 B)

Event Timeline