Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: bgpd: don't use strtoul in str2key
To:
tech@openbsd.org
Date:
Wed, 3 Apr 2024 06:58:01 +1100

Download raw body.

Thread
On Tue, Apr 02, 2024 at 03:31:06PM +0200, Claudio Jeker wrote:
> A similar change was done in ssh. The str2key() function uses strtoul() to
> convert a string from hex. This is not the way strtoul() should be used
> and instead just do it by hand.

It's annoying that libc doesn't provide a good interface for this.

ok tb