]> git.ipfire.org Git - thirdparty/curl.git/commit
http_aws_sigv4: avoid risk of overflowed constant
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 May 2025 06:24:39 +0000 (08:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 May 2025 07:23:06 +0000 (09:23 +0200)
commit8c8186eadcb56ad1f3b51579e13f0ff416bdb58d
tree6b5af64c142ccd00ebe30a5ad4f76d35d2e52bd9
parent5b4bd55006099c1cab270a8502733735733ce5fb
http_aws_sigv4: avoid risk of overflowed constant

- Simplify canon_query() a bit. Avoid unconditionally using length -1
  where length risks being zero at times. Pointed out by Coverity.
- Fix indent errors
- narrow some variable scopes
- fix keywords in tests

Closes #17402
lib/http_aws_sigv4.c
tests/data/test1979
tests/data/test1980