Great,
thanks a lot!

We'll put it into our tree as soon as possible.

Sayeau, Derek wrote:

> Hi all, while away one of my co-workers discovered and fixed the bug
> described below,
> the change is on line 514 or datastr.h:
> 
> origBlocksize(((logBlocksize_ > LIST_SIZE_LARGE) ? logBlocksize_ << 1 :
> TWO_TO(logBlocksize_)))
> 
> Thanks...derek
> >  -----Original Message-----
> > From:       Nguyen, Dangson  
> > Sent:       Wednesday, September 27, 2000 10:55 AM
> > To: Sayeau, Derek
> > Subject:    Memory problem in sablot
> > 
> > Derek,
> > 
> > One more item for you to communicate with GA.  Please do a diff for file
> > datastr.h and see.  Here are the testcases:
> > 
> >  <<mytest.xml>>  <<mytest.xsl>> 
> > 
> > {
> > Basically, the problem was that they always take the specified list size
> > and raise it the the power of 2.  So if you have an expressions with, say
> > 30 AND/OR subexpressions, the size is 2-to-the-power-of-30 = ~
> > >1Gbytes!...
> > }
> > 
> > 
> > Thx,
> > Dan Nguyen
> > 
> > 
> > --------------------------------------------------------------------------
> > --------------------------------------------------------------------------
> > ---------------------
> > 
> > Code Stream *:
> >      6.6
> > 
> > Summary *:
> > Fixed memory problem in trunk and MS2
> > 
> > Description/Fix *:
> > Fixed memory problem when parsing (large) XSLT expressions.  The problem
> > manifestation was either memory assert or large memory consumption.
> > 
> > Files Modified:
> > /cwr/dev6-6/source/sablot/sablot/engine/datastr.h
> > 
> > Product Compatibility:
> >      This update is compatible with all other versions
> > 
> > No error messages are affected by this change.      
> 
> 
> ------------------------------------------------------------------------
> 
> <root>
>       myROOT
> </root>
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> 
> <xsl:template match="root">
>       <xsl:if test="not(starts-with(string(./name), &apos;isschedulewizard&apos;)) 
>and
>               not(starts-with(string(./name), &apos;id&apos;)) and
>               not(starts-with(string(./name), &apos;xmlcmd&apos;)) and
>               not(starts-with(string(./name), &apos;cfc_op&apos;)) and
>               not(starts-with(string(./name), &apos;reporthasprompts&apos;)) and
>               not(starts-with(string(./name), &apos;promptsaved&apos;)) and
>               not(starts-with(string(./name), &apos;modifyprompts&apos;)) and
>               not(starts-with(string(./name), &apos;runmonday&apos;)) and
>               not(starts-with(string(./name), &apos;runtuesday&apos;)) and
>               not(starts-with(string(./name), &apos;runwednesday&apos;)) and
>               not(starts-with(string(./name), &apos;runthurday&apos;)) and
>               not(starts-with(string(./name), &apos;runfriday&apos;)) and
>               not(starts-with(string(./name), &apos;runsaturday&apos;)) and
>               not(starts-with(string(./name), &apos;runsunday&apos;)) and
>               not(starts-with(string(./name), &apos;weekdaystate&apos;)) and
>               not(starts-with(string(./name), &apos;weekdaystate&apos;)) and
>               not(starts-with(string(./name), &apos;untilDate&apos;)) and
>               not(starts-with(string(./name), &apos;frequencyname&apos;)) and
>               not(starts-with(string(./name), &apos;year&apos;)) and
>               not(starts-with(string(./name), &apos;month&apos;)) and
>               not(starts-with(string(./name), &apos;day&apos;)) and
>               not(starts-with(string(./name), &apos;hour&apos;)) and
>               not(starts-with(string(./name), &apos;minute&apos;)) and
>               not(starts-with(string(./name), &apos;runevery&apos;)) and
>               not(starts-with(string(./name), &apos;weekdayevery&apos;)) and
>               not(starts-with(string(./name), &apos;weekdayname&apos;)) and
>               not(starts-with(string(./name), &apos;monthlyrunday&apos;)) and
>               not(starts-with(string(./name), &apos;rununtilyear&apos;)) and
>               not(starts-with(string(./name), &apos;rununtilmonth&apos;)) and
>               not(starts-with(string(./name), &apos;rununtilday&apos;))">
>       </xsl:if>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> mytest.xml
> 
> Content-Type:
> 
> text/xml
> 
> 
> ------------------------------------------------------------------------
> mytest.xsl
> 
> Content-Type:
> 
> text/xml
> 
> 

-- 
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic


Reply via email to