Project

Profile

Help

Bug #6562

Updated by O'Neil Delpratt 11 days 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