gdd smartCopy from empty array returns out-of-bounds error

Bug #1415908 reported by Ralph Lange on 2015-01-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
High
Ralph Lange

Bug Description

Found while poking at spurious messages in the CA Gateway logs:

When copying arrays, the gdd::put() method (being called from the gddAppTable's smartCopy() function) returns an out-of-bounds error if the index of the first source element to copy is equal or larger than the source array size.

This fails when copying from an empty array, where size and first element to copy are zero. Instead, that case should not be considered an error.

Tags: gdd Edit Tag help
Changed in epics-base:
status: New → Fix Committed
Andrew Johnson (anj) on 2015-03-24
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers