| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@19149 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
dest_bytes is a long here, so we should use %ld instead of %d.
git-svn-id: http://svn.xiph.org/trunk/ogg@19147 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
git-svn-id: http://svn.xiph.org/trunk/ogg@19119 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
Remove trailing whitespace and re-indent some comments.
git-svn-id: http://svn.xiph.org/trunk/ogg@18051 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
| |
extension, which is not supported by MSVC.
We don't actually need that generality, though, so revert to simply using
LONG_MAX instead.
git-svn-id: http://svn.xiph.org/trunk/ogg@17287 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
|
| |
GCC optimizes out the overflow check due to the overflow check reyling on overflow;
reimplement using type-based TYPE_MAX macro
Correct an accidental assignment-during-check that wasn't a bug, but was
semantically incorrect and rightly triggered a compilation warning.
git-svn-id: http://svn.xiph.org/trunk/ogg@17270 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if(b->endbyte*8+bits>b->storage*8)goto overflow;
Eliminate the possibility of b->endbyte overflow on buffer storage near or
exactly at long storage limit; corrections made to both read and write.
Also, harden both read and write against requesting <0 or >32 read/write. In both
case, the packer is put into 'error' state.
git-svn-id: http://svn.xiph.org/trunk/ogg@17268 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
| |
The oggpack_* calls expect an unsigned char *, but the self-test
code for convenience uses string literals for some of the test
vectors. This generates a warning on gcc and clang, at least.
We silence the warning by casting the literals to (unsigned char *).
git-svn-id: http://svn.xiph.org/trunk/ogg@17063 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
| |
1) Don't unneccessarily span pages.
2) Unless necessary, don't flush pages if there are less than four packets on
them; this expands page size to reduce unneccessary overhead if incoming
packets are large.
git-svn-id: http://svn.xiph.org/trunk/ogg@16993 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@16051 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
| |
makes it safe to ignore most return codes in applications and simply
check occasionally to see if something went wrong at some earlier
point.
git-svn-id: http://svn.xiph.org/trunk/ogg@16047 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
| |
stack overflow.
git-svn-id: http://svn.xiph.org/trunk/ogg@16022 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so much, autofoo)
Update ogg to check the return of all allocs for those on embedded
platforms with guarantees non-ovecommit. Be aware that these checks
are useless on any modern desktop OS, but that embedded folks with no
MMU and a hard heap boundary will benefit.
Add one new call to bitpacker that will query a write-mode
oggpack_buffer to see if it ran out of memory at some point; there was
no other way to add the error reporting in an ABI-compatible manner
(and it also allows the writepacker to avoid extra checks; it will
just keep going after running out of memory without faulting and state
can be queried later).
git-svn-id: http://svn.xiph.org/trunk/ogg@16016 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@14546 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@7675 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
leak-checking environments
git-svn-id: http://svn.xiph.org/trunk/ogg@7586 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
| |
(patch from Colin Ward)
+ tested on linux/gcc
git-svn-id: http://svn.xiph.org/trunk/ogg@7525 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
| |
exposed by 64 bit systems; the 32 bit mask is signed default and being
sign-extended by 64 bit.
git-svn-id: http://svn.xiph.org/trunk/ogg@6832 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
| |
the original memmove (bcopy is neither portable nor equivalent to
memmove)
git-svn-id: http://svn.xiph.org/trunk/ogg@5951 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
(B_look() and B_read() broken on 64 bit archs)
git-svn-id: http://svn.xiph.org/trunk/ogg@5904 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
fine, I want to find something slightly more elegant.
git-svn-id: http://svn.xiph.org/trunk/ogg@5550 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@5409 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
the fix. Bug 457.
git-svn-id: http://svn.xiph.org/trunk/ogg@5378 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
first into bit position 7, rtaher than LSb first into bit position 0,
ala Vorbis I).
VP3 needs it, as will other future Ogg codecs. Might as well add it
now.
Monty
git-svn-id: http://svn.xiph.org/trunk/ogg@3911 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@3577 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
Add bitpack copy and checkpoint functions
git-svn-id: http://svn.xiph.org/trunk/ogg@3289 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
cause EOF.
git-svn-id: http://svn.xiph.org/trunk/ogg@2958 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@2880 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@2867 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@2106 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@1416 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
|
| |
change to BSD license
version update
git-svn-id: http://svn.xiph.org/trunk/ogg@1333 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@1242 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@1053 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
|
|
|
| |
Monty
git-svn-id: http://svn.xiph.org/trunk/ogg@989 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
|
|
| |
git-svn-id: http://svn.xiph.org/trunk/ogg@648 0101bb08-14d6-0310-b084-bc0e0c8e3800
|
|
git-svn-id: http://svn.xiph.org/trunk/ogg@618 0101bb08-14d6-0310-b084-bc0e0c8e3800
|