From: <no...@so...> - 2002-07-12 18:46:56
|
Bugs item #580568, was opened at 2002-07-12 15:01 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=580568&group_id=1111 Category: Code Group: None Status: Open Resolution: None >Priority: 7 Submitted By: Thomas Equeter (waba) Assigned to: Nobody/Anonymous (nobody) Summary: Server crashes if parsing old worldfile Initial Comment: The server crashes when parsing an old worldfile, since it assumes some XML parts to be present while they aren't. I've located the problem at least in Piece::Load (TiniXmlNode*, Object::ID&), but it may exist some others too. The bug is to assume TiXmlElement::Attribute() returns a valid pointer, while it won't if the requested artibute isn't present in the loaded file. While we're at it we could do the same check on TinyXmlNode::ToElement(). Fixing it and eventually searching for the same errors in other files is still easy, but how to cope with the error ? Throwing Serializer::IOException ? Using null attributes ? I'll follow miguel... Waba ---------------------------------------------------------------------- >Comment By: Miguel Angel Blanch Lardin (arianne_rpg) Date: 2002-07-12 20:46 Message: Logged In: YES user_id=3949 Please use Serializer::IOException ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=580568&group_id=1111 |