You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/08/15 20:08:44 UTC

cvs commit: xml-xerces/c/src/validators/datatype FloatDatatypeValidator.cpp DoubleDatatypeValidator.cpp DecimalDatatypeValidator.cpp

peiyongz    01/08/15 11:08:44

  Modified:    c/src/validators/datatype FloatDatatypeValidator.cpp
                        DoubleDatatypeValidator.cpp
                        DecimalDatatypeValidator.cpp
  Log:
  Fix to potential leakage in strEnumeration
  
  Revision  Changes    Path
  1.2       +6 -4      xml-xerces/c/src/validators/datatype/FloatDatatypeValidator.cpp
  
  Index: FloatDatatypeValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/FloatDatatypeValidator.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FloatDatatypeValidator.cpp	2001/07/26 20:42:16	1.1
  +++ FloatDatatypeValidator.cpp	2001/08/15 18:08:44	1.2
  @@ -55,8 +55,11 @@
    */
   
   /*
  - * $Id: FloatDatatypeValidator.cpp,v 1.1 2001/07/26 20:42:16 peiyongz Exp $
  + * $Id: FloatDatatypeValidator.cpp,v 1.2 2001/08/15 18:08:44 peiyongz Exp $
    * $Log: FloatDatatypeValidator.cpp,v $
  + * Revision 1.2  2001/08/15 18:08:44  peiyongz
  + * Fix to potential leakage in strEnumeration
  + *
    * Revision 1.1  2001/07/26 20:42:16  peiyongz
    * FloatDatatypeValidator
    *
  @@ -114,12 +117,11 @@
       {
           XMLCh* key;
           XMLCh* value;
  -        RefVectorOf<XMLCh>*             fStrEnumeration = 0; // save the literal value
  +        RefVectorOf<XMLCh>*             fStrEnumeration = enums; // save the literal value
           Janitor<RefVectorOf<XMLCh> >    janStrEnum(fStrEnumeration);
   
           if (enums)
           {
  -            fStrEnumeration = enums;
               setFacetsDefined(DatatypeValidator::FACET_ENUMERATION);
           }
   
  
  
  
  1.2       +6 -4      xml-xerces/c/src/validators/datatype/DoubleDatatypeValidator.cpp
  
  Index: DoubleDatatypeValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DoubleDatatypeValidator.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DoubleDatatypeValidator.cpp	2001/07/24 13:59:03	1.1
  +++ DoubleDatatypeValidator.cpp	2001/08/15 18:08:44	1.2
  @@ -55,8 +55,11 @@
    */
   
   /*
  - * $Id: DoubleDatatypeValidator.cpp,v 1.1 2001/07/24 13:59:03 peiyongz Exp $
  + * $Id: DoubleDatatypeValidator.cpp,v 1.2 2001/08/15 18:08:44 peiyongz Exp $
    * $Log: DoubleDatatypeValidator.cpp,v $
  + * Revision 1.2  2001/08/15 18:08:44  peiyongz
  + * Fix to potential leakage in strEnumeration
  + *
    * Revision 1.1  2001/07/24 13:59:03  peiyongz
    * DoubleDTV
    *
  @@ -113,12 +116,11 @@
       {
           XMLCh* key;
           XMLCh* value;
  -        RefVectorOf<XMLCh>*             fStrEnumeration = 0; // save the literal value
  +        RefVectorOf<XMLCh>*             fStrEnumeration = enums; // save the literal value
           Janitor<RefVectorOf<XMLCh> >    janStrEnum(fStrEnumeration);
   
           if (enums)
           {
  -            fStrEnumeration = enums;
               setFacetsDefined(DatatypeValidator::FACET_ENUMERATION);
           }
   
  
  
  
  1.12      +4 -2      xml-xerces/c/src/validators/datatype/DecimalDatatypeValidator.cpp
  
  Index: DecimalDatatypeValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DecimalDatatypeValidator.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DecimalDatatypeValidator.cpp	2001/07/17 21:30:12	1.11
  +++ DecimalDatatypeValidator.cpp	2001/08/15 18:08:44	1.12
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: DecimalDatatypeValidator.cpp,v $
  + * Revision 1.12  2001/08/15 18:08:44  peiyongz
  + * Fix to potential leakage in strEnumeration
  + *
    * Revision 1.11  2001/07/17 21:30:12  peiyongz
    * bug fix: numBase->getMinInclusive()->toString()
    *
  @@ -141,12 +144,11 @@
       {
           XMLCh* key;
           XMLCh* value;
  -        RefVectorOf<XMLCh>*             fStrEnumeration = 0; // save the literal value
  +        RefVectorOf<XMLCh>*             fStrEnumeration = enums; // save the literal value
           Janitor<RefVectorOf<XMLCh> >    janStrEnum(fStrEnumeration);
   
           if (enums)
           {
  -            fStrEnumeration = enums;
               setFacetsDefined(DatatypeValidator::FACET_ENUMERATION);
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org