Issue 114410 - idlc: idlcpp uses memcpy on overlapping areas
Summary: idlc: idlcpp uses memcpy on overlapping areas
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: DEV300m87
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: 4.0.0
Assignee: dtardon
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks: 90439
  Show dependency tree
 
Reported: 2010-09-08 13:38 UTC by caolanm
Modified: 2017-05-20 09:24 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
fix this (451 bytes, patch)
2010-09-08 13:39 UTC, caolanm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description caolanm 2010-09-08 13:38:52 UTC
idlc breaks for me sometimes fairly randomly, looking closer idlc isn't getting
the expected output from idlcpp, and looking at that with valgrind shows that
its uses memcpy with overlapping areas, which causes randomlike behaviour.
Should use memmove if they overlap.
Comment 1 caolanm 2010-09-08 13:39:58 UTC
Created attachment 71614 [details]
fix this
Comment 2 caolanm 2010-09-08 13:44:47 UTC
cmc->rene: as an aside, this might be the reason idlc failed on hppa sometimes
as well.
Comment 4 rene 2010-09-08 21:00:23 UTC
camc: thanks for the cc, but apparently it's not the case for the hppa hang.
Comment 5 caolanm 2010-09-21 14:52:19 UTC
reassigning for sanity check