Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions FirmwareUpdate/FirmwareUpdateImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ namespace WPEFramework {
const char *uptype = "pci";
const char *file = NULL;
int flash_status = -1;
int* p = new int [10];
delete[] p;
p[0] = 10;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Write to pointer after free

Using freed pointer "p".

High Impact, CWE-416
USE_AFTER_FREE

struct FWDownloadStatus fwdls;
memset(&fwdls, '\0', sizeof(fwdls));
if (initiated_type == nullptr || *initiated_type == '\0') {
Expand Down
Loading