Open
Bug 1584788
Opened 5 years ago
Updated 2 years ago
Incorrect code found via PVS-Studio Static Analyzer - https://www.viva64.com/en/b/0672/#ID0EGZEK
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: jorgk-bmo, Unassigned)
Details
https://searchfox.org/mozilla-central/search?q=HRESULT+result+%3D+SHGetSpecialFolderPathW(nullptr%2C+path%2C+aFolder%2C+true)%3B&case=false®exp=false&path=
HRESULT result = SHGetSpecialFolderPathW(nullptr, path, aFolder, true);
Should be BOOL
Source: https://www.viva64.com/en/b/0672/#ID0EGZEK
There are other issues mentioned on that page, but I think it's legitimate to used delete
after malloc/realloc
.
Reporter | ||
Comment 1•5 years ago
|
||
Just for your reference: This all comes from bug 1584473 comment #9.
Updated•2 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•