This function is not just unused, it is a problem because there is no
enforced connection between r->ab.length and r->cbData.
The last caller was removed in the previous commit.
Found by Douglas Bagnall using Hongfuzz and the new fuzz_ndr_X
fuzzer.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
return checksum;
}
-uint32_t ndr_cab_generate_checksum(const struct CFDATA *r)
-{
- uint32_t csumPartial;
-
- csumPartial = ndr_cab_compute_checksum(&r->ab.data[0], r->cbData, 0);
-
- return ndr_cab_compute_checksum((uint8_t *)discard_const(&r->cbData),
- sizeof(r->cbData) + sizeof(r->cbUncomp),
- csumPartial);
-}
-
/* Push all CFDATA of a folder.
*
* This works on a folder level because compression type is set per
*/
uint32_t ndr_count_cfdata(const struct cab_file *r);
-uint32_t ndr_cab_generate_checksum(const struct CFDATA *r);