Comment 6 for bug 907761

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

The same problem as for links exists for SPC_ATTRIBUTE fields like .RNAM.

The problem is caused by multiple bugs in string length calculation and termination in dbGetField, dbGet.

The algorithm wrongly assumed that CHAR arrays need to be 0 terminated and then did the length calculation wrong by decreasing the length twice. The patch attached fixes this so that access to links and attributes behaves the same as access to string fields.