Project

Profile

Help

Bug #6562

Updated by O'Neil Delpratt 2 months ago

I noticed some strange casting issue of XdmValue to XdmMap via the `parseJsonFromString` method. 

 The map_size variable is corrupted in the class `XdmMap`. 

 See example: 

 ``` cpp 
 XdmValue * signatureValue = parseJsonFromString(signature); 
 XdmItem * item = signatureValue->getHead(); 
 if(item->isMap()) { 
     XdmMap *xdmMap = (XdmMap *) item; 
     
 int size = xdmMap->mapSize(); // problem here 
 } 
 ``` 


Back