shithub: riscv

Download patch

ref: 014b9a62ac919b4f7ada38b8649f6a4a062cd207
parent: 4bc5793a2c0a02ad85b853904603c896c3c77fb5
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Oct 14 13:50:55 EDT 2023

idn: fix crash with long domain names

When a domain name gets long enough, we can end
up passing a remaining length of 0 to seprint.
When seprint has no buffer space at all, it returns
nil, which then crashes our DNS server.

This checks for a nil return from seprint and returns
an error