]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libfetch: Pass a zeroed digest to DigestCalcResponse.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 16 Nov 2022 03:18:58 +0000 (19:18 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 16 Nov 2022 03:18:58 +0000 (19:18 -0800)
commit57fbafb8deac75b924faf1fa6c2222a7719fdfec
treecbb08458f57e3afa33aeb619663c1ff019e24dba
parent6100374ccf2644d3fd233bde8b8f4e73d9953c30
libfetch: Pass a zeroed digest to DigestCalcResponse.

GCC 12 warns that passing "" (a constant of char[1]) to a parameter of
type char[33] could potentially overread.  It is not clear from the
context that c->qops can never be "auth-int" (and if it can't, then
the "auth-int" handling in DigestCalcResponse is dead code that should
be removed since this is the only place the function is called).

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36825
lib/libfetch/http.c