Files
packages/libs/udns/test-version.sh
Sander van Deijck 0d5f51b58e udns: update to 0.7
udns is maintained again: 0.5 (March 2024) and 0.6 (July 2024) were the
first releases in ten years, and 0.7 followed in October 2026.

0.7 fixes several bugs in DNS name parsing, among them a heap buffer
overflow: a reply whose first name contained a compression pointer
made dns_stdrr_size() undersize a buffer that dns_stdrr_finish()
then wrote past. It also fixes dns_cancel() leaking the cancelled
query.

0.5 and 0.6 fix repeated queries for non-existing domains and the
inet_ntop()/inet_pton() checks, among others.

The autotools patch only needs its AC_INIT version bumped; the set of
source files is unchanged.

Release notes: https://www.corpit.ru/mjt/udns/NEWS

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
2026-10-31 16:17:35 +02:00

26 lines
544 B
Bash
Executable File

#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
libudns)
# dns_version() returns this string
grep -aqF "$PKG_VERSION" /usr/lib/libudns.so.0
;;
udns-dnsget)
dnsget -h 2>&1 | grep -F "udns version $PKG_VERSION"
;;
udns-rblcheck)
rblcheck -h 2>&1 | grep -F "udns-rblcheck $PKG_VERSION"
;;
udns-ex-rdns)
# ex-rdns is an example program and has no version or help output;
# check the library it runs against instead.
grep -aqF "$PKG_VERSION" /usr/lib/libudns.so.0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac