]> git.ipfire.org Git - thirdparty/curl.git/commit
parsedate: parse strings without using sscanf()
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Feb 2023 09:04:31 +0000 (10:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Feb 2023 22:48:14 +0000 (23:48 +0100)
commitba9a4e9bd8f7dbfa894e768dfbd6e9205f62dac8
tree8c106e91ce7f9638978597b0e22a39d52510e991
parentcbf571761503ca28ef8425c7b09f9310f266ceae
parsedate: parse strings without using sscanf()

- sscanf is slow and complex, avoid it
- give up already if the string is 12 bytes or longer as no valid string
  can be that long
- this can now be done without copy

Closes #10547
lib/parsedate.c