Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: newsyslog: fix negative size limit bug
To:
Alexander Bluhm <bluhm@openbsd.org>
Cc:
Jan Klemkow <jan@openbsd.org>, tech@openbsd.org
Date:
Tue, 22 Jul 2025 18:06:42 -0600

Download raw body.

Thread
  • Theo de Raadt:

    newsyslog: fix negative size limit bug

  • Correct, use strtonum()
    
    While at it, read the strtoll() manual page and spot the multiple mistakes
    you made assuming it does what you think it does.  It's so incredibly error
    prone, including errno and range-checking.  That is why we created strtonum.
    
    
  • Theo de Raadt:

    newsyslog: fix negative size limit bug