Opened 18 years ago
Closed 18 years ago
#1606 closed defect (fixed)
sdeShapeCopy is improperly allocating memory for shapes with subparts
Reported by: | hobu | Owned by: | hobu |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Input - Native SDE Support | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
http://forums.esri.com/Thread.asp?c=2&f=59&t=86510&mc=2#msgid237072 shows some code that is a bit different than what was in sdeShapeCopy. The problem, I think, was an off-by-one memory allocation bug, where NULL was being passed in for the parts_offset, and for shapes with parts, the internal SDE structure was causing heap corruption. It was a major PITA to pin down. The fix was to make the allocation and looping code to behave more like what was posted in that example. Only tested this with ArcSDE 9.0 on Windows and ArcSDE 9.1 on Linux. I assume the others will behave similarly.
Note:
See TracTickets
for help on using tickets.