]> git.gsnw.org Git - fping.git/commit
Safe memory allocation for event storage.
authorDavid Schweikert <david@schweikert.ch>
Sun, 17 Aug 2025 20:42:45 +0000 (22:42 +0200)
committerDavid Schweikert <david@schweikert.ch>
Tue, 19 Aug 2025 07:45:48 +0000 (09:45 +0200)
commit59df0372fa0c1137a28bb80cb3e0425be2981143
tree16ef3ece7c5088fee77cb023b1cf8a0a1e088904
parentad5777676bde793d06295abd177e9fd44128aec7
Safe memory allocation for event storage.

- Check calloc return value.
- Make sure that the per-host interval can't be unreasonably low (making the event storage allocation very large).

The issue was reported by David.A.
ci/test-03-forbidden.pl
src/fping.c