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)

defect

Tracking

()

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&regexp=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.

Just for your reference: This all comes from bug 1584473 comment #9.

Severity: normal → S3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.