]> git.ipfire.org Git - thirdparty/systemd.git/commit
dns-packet: bail out early if the packet is too short 42189/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 20 May 2026 08:47:22 +0000 (10:47 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 20 May 2026 09:16:29 +0000 (11:16 +0200)
commit180985c2cef3648aa1b95338272177610c89c185
tree4edbcad2b7ee03255c2044599a53dfd2f80b228b
parent6c119e11b26bde34ac9925cc2ad9cda690442c61
dns-packet: bail out early if the packet is too short

Let's bail out early if the packet claims to contain some
questions or answer RRs, but the remaining packet data size is not
enough to hold a single such entry.

Follow-up for e7cd836dcffb5f85d66a156904fc68f8b654a290.
src/shared/dns-packet.c