IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#314 closed defect (fixed)

psMetadataIteratorAlloc and Mutable parameter

Reported by: robert.desonia@… Owned by: eugene
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: critical Keywords:
Cc:

Description

Since psMetadata is formed from a psList and psHash containing duplicate set of
references of psMetadataItem objects, making a mutable iterator over just the
psList seems to be very dangerous as it opens up a reasonable means to add
something to the psList and not the psHash. I suggest that mutable be dropped
from the psMetadataIteratorAlloc parameter list and the return psListIterator
be set to be not mutable.

psListIterator* psMetadataIteratorAlloc(psMetadata* md, psS32 location)
{

if (md == NULL) {

return NULL;

}


return psListIteratorAlloc(md->list,location,false);

}

-rdd

Change History (4)

comment:1 by Paul Price, 21 years ago

Owner: changed from Paul Price to eugene

comment:2 by robert.desonia@…, 21 years ago

additionally, see bug 315 comments.

comment:3 by eugene, 21 years ago

Status: newassigned

this solution seems fine to me.

comment:4 by robert.desonia@…, 21 years ago

Resolution: fixed
Status: assignedclosed

Bug 315 negates this, as it defines a new prototype for psMetadataIteratorAlloc.

Note: See TracTickets for help on using tickets.