networkd: refuse more than 128 NTP servers

This test case is a bit silly, but it shows that our code is unprepared to
handle so many network servers, with quadratic complexity in various places.
I don't think there are any valid reasons to have hundres of NTP servers
configured, so let's just emit a warning and cut the list short.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13354
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-02-27 14:52:33 +01:00
parent 83ec459276
commit c448459d56
2 changed files with 11 additions and 3 deletions
Binary file not shown.