Skip to content

Mythos Defect Remediation - RRD - #261

Open
Kaavyashree2 wants to merge 18 commits into
developfrom
feature/rrd_mythos1
Open

Kaavyashree2 wants to merge 18 commits into
developfrom
feature/rrd_mythos1

Conversation

@Kaavyashree2

Copy link
Copy Markdown

No description provided.

@Kaavyashree2
Kaavyashree2 requested a review from a team as a code owner November 4, 2026 05:06
Copilot AI balanced review requested due to automatic review settings November 4, 2026 05:06
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

                               Total:|84.0%   6280|97.3%  1668|    -      0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified 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 RRD log-upload script by normalizing and filtering the value used in archive filenames.

Changes:

  • Replaces unquoted echo with quoted printf to preserve the input during processing.
  • Converts the issue type to uppercase and restricts it to letters, digits, underscores, and hyphens.
File Description
scripts/​uploadRRDLogs.sh Sanitizes the issue type used to name uploaded log archives.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 05:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the filename-sanitization and coverage-report changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Critical validation gaps still accept malformed debugger data and abbreviated metadata keys, while allocation-size overflow can cause out-of-bounds writes.

5 open issues

Review effort: Balanced

Comment thread src/rrdMsgPackDecoder.c Resolved
Comment thread src/rrdMsgPackDecoder.c Resolved
Comment thread src/rrdMsgPackDecoder.c Resolved
Comment thread src/rrdMsgPackDecoder.c Resolved
Comment thread src/rrdMsgPackDecoder.c Resolved
Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved validation gaps accept malformed wrappers and abbreviated metadata keys, while mandatory metadata checks break an existing success test and new overflow tests contain incorrect size assumptions and out-of-bounds reads.

7 open issues

Review effort: Balanced

Comment thread src/unittest/rrdUnitTestRunner.cpp Resolved
Comment thread src/unittest/rrdUnitTestRunner.cpp Resolved
Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Metadata validation accepts prefix keys and breaks existing success fixtures, while new overflow tests fail on 64-bit hosts and trigger an out-of-bounds read.

7 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Unresolved decoder validation flaws accept abbreviated required-field keys and wrongly typed wrappers, while the new metadata requirement breaks an existing success test.

5 open issues
2 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Metadata lookups accept partial or empty keys, and a wrongly typed remotedebugger wrapper is treated as absent, allowing invalid documents to pass validation with incorrect or zero IDs.

5 open issues

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Critical metadata-validation and size-check defects can cause NULL dereferences and allocation overflow leading to out-of-bounds writes.

4 open issues
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 08:05
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

                               Total:|83.9%   6285|97.3%  1668|    -      0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Metadata key matching accepts prefixes and empty keys, allowing malformed entries to populate version or transaction ID fields; exact key-length checks are needed.

3 open issues
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The decoder still permits allocation-size overflow and length narrowing, while prefix-based metadata matching can accept incorrect keys or shadow valid fields.

3 open issues

Review effort: Balanced

…ngths'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The strict key-length check rejects the success-test fixture’s incorrectly packed remotedebugger key, returning an empty document and failing assertions until both fixture packing lengths are corrected.

2 open issues
2 resolved since last review

Review effort: Balanced

Comment thread src/rrdMsgPackDecoder.c Resolved
Copilot AI balanced review requested due to automatic review settings November 4, 2026 09:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The length guard fails to reserve the extra allocation byte, allowing the allocation size to wrap to zero on 32-bit targets and potentially permitting out-of-bounds writes.

2 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 09:29
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

                               Total:|83.9%   6286|97.3%  1668|    -      0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Malformed metadata can trigger NULL-pointer dereferences that crash the daemon, and the stricter key-length check breaks the existing conversion-success fixture.

1 open issue
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 4, 2026 09:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Malformed metadata can crash the daemon through unchecked NULL pointers, and incomplete size checks can allow allocation-size overflow and out-of-bounds writes.

1 open issue

Review effort: Balanced

@Kaavyashree2 Kaavyashree2 changed the title RDKE: 61924 / RDKB: 66749 Mythos Defect Remediation - RRD Mythos Defect Remediation - RRD Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants