On Wed, 2024-01-31 at 12:51 +0100, F. E. wrote:
> Increasing the s_maxRecursionDepth would defeat the purpose of the
> RecursionGuard. The guard is already aligned to the typcial stack
> size of 256, so increasing the max would just open door to stack
> overflows the guard is meant to prevent. If anything, the guards max
> value may actually be to big, since it does not leave "wiggle room"
> for client code using podofo.
> You can increase the stack, thats true, but that would just be a
> bandaid fix. As soon as an even bigger pdf file comes alone, it might
> crash again. The parsing code should not use an recursive approach,
> thats the design flaw, imo. The recursion guard is meant to mitigate
> that, but the whole process seems to have its own flaw somewhere.

        Hi,
yes, I agree. My suggestion was more about "try whether the arch can
handle it" than as "use this as a fix, temporary or permanent".
Just a test suggestion, nothing more.
        Bye,
        zyx


_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to