On Tue, 15 Jan 2019 at 10:44, Francesco Pretto <cez...@gmail.com> wrote: > Also, you are not allocation large enough buffer there, it > > should be: > > sizeof(pdf_utf16be) * (lLenUtf16 + 1) > > similarly with the next podofo_malloc(), > > I just copied the size from the previous allocation with VLA so I > guess if it's wrong now it was wrong also before? > >
Ah ok, I got it. Yes, std::vector usage is definitely better choice. _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users