Repository navigation
RDKE: 61924 / RDKB: 66749 Mythos Defect Remediation - RRD - #262
Kaavyashree2 wants to merge 9 commits into
Conversation
Code Coverage Summary |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the change that sanitizes issue types used in log archive filenames.
No open issues 🎉
What changed in this PR
This PR hardens issue-type handling in the remote-debugger log upload script before the value is included in archive filenames.
Changes:
- Replaces unquoted
echowith quotedprintfto avoid word splitting and wildcard expansion. - Converts the issue type to uppercase and restricts it to
A-Z, digits, underscores, and hyphens.
| File | Description |
|---|---|
scripts/uploadRRDLogs.sh |
Sanitizes the issue type used in log archive filenames. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The decoder contains invalid syntax that blocks compilation, an unchecked metadata pointer that can cause a null dereference, and an unhandled overflow result that can lead to a heap buffer overflow.
4 open issues
Review effort: Balanced
Code Coverage Summary |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues allow malformed metadata to crash the daemon and unchecked command lengths to overflow downstream storage or allocations, risking out-of-bounds writes.
5 open issues
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Malformed metadata can cause null-pointer dereferences that crash the daemon, and the new overflow test fails on 64-bit hosts because its string length is truncated.
1 open issue
5 resolved since last review
Review effort: Balanced
Code Coverage Summary |
| /* | ||
|
|
||
| TEST(GetReqTotalSizeOfIssueTypesStrTest, DetectsSizeOverflow) | ||
| { | ||
| msgpack_object obj_array[2]; | ||
|
|
||
| obj_array[0].type = MSGPACK_OBJECT_STR; | ||
| obj_array[0].via.str.size = SIZE_MAX - 1; | ||
|
|
||
| obj_array[1].type = MSGPACK_OBJECT_STR; | ||
| obj_array[1].via.str.size = 10; | ||
|
|
||
| printf("SIZE_MAX=%zu\n", (size_t)SIZE_MAX); | ||
| printf("obj0 size=%zu\n", (size_t)obj_array[0].via.str.size); | ||
| printf("obj1 size=%zu\n", (size_t)obj_array[1].via.str.size); | ||
|
|
||
| msgpack_object_array arr = {2, obj_array}; | ||
|
|
||
| size_t result = getReqTotalSizeOfIssueTypesStr(&arr); | ||
|
|
||
| printf("result=%zu\n", result); | ||
|
|
||
|
|
||
| EXPECT_EQ(result, 0u); | ||
| } | ||
| */ |


Uh oh!
There was an error while loading. Please reload this page.