commit (head): fix 6800

From: Tomas Frydrych <tomasfrydrych_at_yahoo.co.uk>
Date: Tue Aug 31 2004 - 20:13:31 CEST

this fixes 6800, which was caused by not checking return value of
PP_AttrProp::getNthAttribute() -- for some reason hash that has n
items stored in it, may contain less than n valid items, so code like

for(int i = 0; i < PP_AttrProp::getAttributeCount(); i++)
{
  PP_AttrProp::getNthAttribute(i, name, value);
  char c = *value;
}

can crash, because value is not always valid.

files: pp_Revision.cpp, pp_AttrProp.cpp.

Tomas
Received on Tue Aug 31 19:59:44 2004

This archive was generated by hypermail 2.1.8 : Tue Aug 31 2004 - 19:59:44 CEST