Change #267069
| Category | None |
| Changed by | Daniel Stenberg <daniel@haxx.se> |
| Changed at | Thu 14 May 2026 00:06:03 |
| Repository | https://api.github.com/repos/curl/curl |
| Project | curl/curl |
| Branch | bagder/strparse-zero-max |
| Revision | 14bddadb4a181119b7772b957dc5f7a24154a470 |
Comments
strparse: make curlx_str_until() accept zero for 'max' When asked to parse for a string with max zero bytes, it will always return error and no longer trigger an assert. This saves the caller from having to check for this condition.
Changed files
- lib/curlx/strparse.c