Commit graph

19 commits

Author SHA1 Message Date
e0dcac0c2c Handle additional edge cases as invalid
"192.168.2" is now caught as invalid, along with
"...4".
2023-08-25 21:01:34 -03:00
59f0c31c20 README: update 2023-08-25 20:46:43 -03:00
26b7492907 README: update 2023-08-25 20:43:31 -03:00
1ceccdb5db v0.1.0 2023-08-25 20:35:56 -03:00
47b7537edc Compile with -fstack-protector-all 2023-08-25 20:29:47 -03:00
de2f0d55e1 Handle edge case only when we have to 2023-08-25 20:25:44 -03:00
df4a6f0a88 Add testcases 2023-08-25 20:08:22 -03:00
9baa5f9fe4 Treat "123.45.67.891" as invalid 2023-08-25 20:05:43 -03:00
918d43e4e9 Small tweak 2023-08-25 18:58:59 -03:00
8d71ef6bd4 Avoid buffer overflow 2023-08-25 18:37:53 -03:00
74fef68c8d Stack smash test 2023-08-25 18:32:06 -03:00
d170a1c1ca Small tweak 2023-08-25 18:28:14 -03:00
24c3bfb681 Handle 'str' being NULL 2023-08-25 18:26:21 -03:00
ae64ca4671 tests: improve 2023-08-25 18:26:21 -03:00
0x1eef
2ba1f062a8
Merge pull request #1 from 0x1eef/github.action
Add GitHub action
2023-08-25 17:38:35 -03:00
8a5f4e170d Add GitHub action 2023-08-25 17:38:12 -03:00
59108cc615 Improve portability / performance
* `strtonum` is unique to OpenBSD - use `strtol` instead.
* Call `strnlen` once.
* Avoid int cast.
2023-08-25 17:14:33 -03:00
7e8e312e1b Fix example 2023-08-25 16:18:35 -03:00
7c02f425c5 First commit 2023-08-25 15:57:09 -03:00