On Mon, Mar 21, 2022 at 9:22 AM zyx <z...@gmx.us> wrote: > On Fri, 2022-03-18 at 19:02 +0100, Michal Sudolsky wrote: > > It will probably work only on your machine or only on the OS you > > are using. Or it can stop working in some newer version of that OS > > (if the font you used changes in some specific way). > > Hi, > yes, it's working only as a trigger of the function, it doesn't test > the output of it. As the function itself is defined only for little > endian, the test "works" for little endian systems only. The test fails > with Unsupported Font exception, but it was enough to trigger the stack > overflow after incorrect application of the proposed change. > > That's what I meant with "not a perfect test" earlier. >
First I meant it could fail to catch if there are no negative numbers in the font (I am not sure why I thought that it would cause stack overflow only for negative inputs). But for example Arial may not be TTF (lets pretend that podofo supports other font types for subsetting). I mean there should be some specific font file alongside this test. Bye, > zyx > > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users