New Defects reported by Coverity Scan for RTEMS-Tools
scan-admin at coverity.com
scan-admin at coverity.com
Mon Nov 16 06:09:09 UTC 2026
Hi,
Please find the latest report on new defect(s) introduced to RTEMS-Tools found with Coverity Scan.
1 new defect(s) introduced to RTEMS-Tools found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1688982: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
_____________________________________________________________________________________________
*** CID 1688982: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
/linkers/rtems-rapper.cpp: 377 in rap::section::load_relocs(rld::compress::compressor &, unsigned int)()
371 size_t symname_read = comp.read ((void*) reloc.symname.c_str (), symname_size);
372 if (symname_read != symname_size)
373 throw rld::error ("Reading reloc symbol name failed", "rapper");
374 }
375 }
376
>>> CID 1688982: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
>>> "reloc" is copied and then passed-by-reference as parameter to STL insertion function "push_back", when it could be moved instead.
377 relocs.push_back (reloc);
378 }
379
380 std::stable_sort (relocs.begin (), relocs.end (), reloc_offset_compare ());
381 }
382 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/rtems-tools?tab=overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/build/attachments/20261116/c0782af1/attachment.htm>
More information about the build
mailing list