~xiph/ogg/trunk

Viewing all changes in revision 445.

  • Committer: xiphmont
  • Date: 2014-04-24 20:59:56 UTC
  • Revision ID: svn-v4:0101bb08-14d6-0310-b084-bc0e0c8e3800:trunk/ogg:19119
Correct oggpack_writecopy bug reported by Ian Nartowicz: Integer
overflow checking in oggpack_writecopy_helper got the reallocation
size test condition backwards and so would error out when it needed to
expand the destination's internal buffer.

At the same time, do preexpansion of both aligned and unaligned copies
to avoid possible heap thrashing in the unaligned case.

Add black and glass box unit tests for oggpack_writecopy and
oggpackB_writecopy.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: