Initialize decodingErrors before DecodeSCTs increments it
Categories
(Core :: Security: PSM, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: evaprnn, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=c++])
Attachments
(1 external file)
Filing as a good first bug to learn workflows.
size_t decodingErrors; is passed to DecodeSCTs, which only increments it, so it starts from an indeterminate value (the result is then discarded). Initialize it: size_t decodingErrors = 0;.
Current code:
CertVerifier::CertificateTransparencyMode::Disabled) {
size_t decodingErrors;
std::vector<SignedCertificateTimestamp> decodedSCTsFromExtension;
Link to the code:
https://searchfox.org/firefox-main/source/security/certverifier/NSSCertDBTrustDomain.cpp
To verify the fix:
./mach build
This was reported by Coverity Scan (CID 1678463). The analyzer will stop reporting it once the change lands.
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
| Assignee | ||
Comment 1•11 days ago
|
||
Updated•11 days ago
|
Comment 3•7 days ago
|
||
| bugherder | ||
Updated•22 hours ago
|
Description
•