backout scanner.l strtonum commits; they restrict numbers to INT_MAX,
authorsthen <sthen@openbsd.org>
Tue, 24 Sep 2024 14:20:31 +0000 (14:20 +0000)
committersthen <sthen@openbsd.org>
Tue, 24 Sep 2024 14:20:31 +0000 (14:20 +0000)
commitf331ac58f85b22982050217d173a143c9cfc4822
tree0278f8b240486fc069351bc33e7b2ddd31b03494
parentdd2b8016139a630eb8d411270a9d8b90c9dd880b
backout scanner.l strtonum commits; they restrict numbers to INT_MAX,
breaking filter expressions like "ether[14:4]=0xaaaa0300". ok op@ deraadt@

-/--------------------------
revision 1.32
date: 2024/08/29 07:33:50;  author: anton;  state: Exp;  lines: +2 -2;  commitid: ZYtBn8qrrNNh87on;
Fix regression introduced in previous migration to strtol() by
correcting the error condition, making it on par with the example in the
manual.

ok op@
-/--------------------------
revision 1.31
date: 2024/08/28 11:40:33;  author: op;  state: Exp;  lines: +13 -31;  commitid: RirJPBPfGo9NeSE6;
libpcap: replace hand-rolled number parser with strtol

can't use strtonum here since it needs to handle octal and hex
notations as well.  Part of a larger diff that's ok beck@
-/--------------------------
lib/libpcap/scanner.l