]> 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:36:41 +0000 (09:36 +0200)
commit90491d6068be801e3c844ba5b619bad3a02377a1
treebf6931528b205259168800e5c38012596bad66cb
parent9ba18920e99ef1a5734c48c720a12718cf265ed0
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