]> git.ipfire.org Git - thirdparty/curl.git/commit
file2memory: use a define instead of -1 unsigned value
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Jul 2020 12:04:32 +0000 (14:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Jul 2020 22:34:05 +0000 (00:34 +0200)
commitb331a5fa09e15a01b2ee9ce21fe7e46fcc80dcd3
tree69d73ab436f5dc26b431966dad5f6c5f508f4e98
parent954cd3eb482a00fda610ca64498d50db2b2e8298
file2memory: use a define instead of -1 unsigned value

... to use the maximum value for 'size_t' when detecting integer overflow.
Changed the limit to max/4 as already that seems unreasonably large.

Codacy didn't like the previous approach.

Closes #5683
src/tool_paramhlp.c