Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: bgpd: don't use strtoul in str2key
To:
Theo Buehler <tb@theobuehler.org>
Cc:
tech@openbsd.org
Date:
Tue, 02 Apr 2024 14:02:01 -0600

Download raw body.

Thread
Theo Buehler <tb@theobuehler.org> wrote:

> 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.

I dunno, I wouldn't want to see this anything for this in libc.