A Use After Free Bug

Description

In the source file tools/pkgdata/pkgdata.cpp, in the function pkg_createWithAssemblyCode, the variable cmd has been freed at Line 1555, and used at Line 1557.

1528. static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath) {
...
1555. uprv_free(cmd);
1556. if (result != 0) {
1557. fprintf(stderr, "Error creating with assembly code. Failed command: %s\n", cmd);
1558. return result;
1559. }

 

 

The code repository url:

Status

Assignee

Jeff Genovy

Reporter

Rongxin Wu

Labels

None

Reviewer

Michael Hudson-Doyle

Time Needed

None

Start date

None

Components

Fix versions

Priority

critical
Configure