Sebastian Huber created a merge request: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/101

Project:Branches: sebhub/rtems-tools:rapper-move-reloc to 
rtems/tools/rtems-tools:main
Author: Sebastian Huber

## Summary

**Problem:** Coverity Scan reports CID 1688982 (COPY_INSTEAD_OF_MOVE) in 
`rap::section::load_relocs()` of `rtems-rap`. The loop copies each relocation 
record, including its symbol name string, into the vector. The copy is old. 
!100 changed the lines around it, so Coverity reports it as new.

**Fix:** Move the record into the vector with `std::move()`.

## Test

The tools build without a new warning.

## AI Details
<!-- Make sure you have read our statement at 
https://www.rtems.org/generative-ai/ -->

### Prompt used

The Coverity Scan report of CID 1688982.

### AI model used

Claude Opus 5.5 (claude-opus-5-5), through Claude Code.

### How AI was used for the contribution

- ( ) Formatting
- ( ) Test creation.
- ( ) Code comments.
- (x) The entire contribution was generated using AI
- ( ) AI code completion such as Copilot in VSCode.

I reviewed the change and the commit message.

### Access

I have not used a product which claims copyright in its output, and I have 
legitimate access to the one I used.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/101
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/13/sent_notifications/6-ajmu5r444q7kma011am14x3eg-d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to