summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Forward parts of port r14502, r16217, and r16222.tremolo_mipsNedeljko Babic2012-04-031-0/+6
| | | | | | | | | | Correct a potential comment length sanity check overflow. Commit additional hardening to comment packet decode. Also add allocation checks, since these can still run us out of address space if someone actually sends a GB or two of comment data. [Import parts of changes from Tremor (69dfba9 2010-10-13)]
* floor0 code could potentially use a book where the number of vals itNedeljko Babic2012-04-031-2/+4
| | | | | | | | | | | | | | | | | needed to decode was not an integer number of dims wide. This caused it to overflow the output vector as the termination condition was in the outer loop of vorbis_book_decodev_set. None of the various vorbis_book_decodeXXXX calls internally guard against this case either, but in every other use the calling code does properly guard (and avoids putting more checks in the tight inner decode loop). For floor0, move the checks into the inner loop as there's little penalty for doing so. Add commentary indicating where guarding is done. [Import part of changes from Tremor (80661a1 2010-10-18)]
* Add additional checkNedeljko Babic2012-04-031-34/+36
| | | | | | Disallow books with dim<1 and book index < 0 in floor0 [Import changes from Tremor (8b4f038 2010-10-18)]
* patch to fix a typo in the autoconf script for Tremor from brad0Nedeljko Babic2012-04-031-10/+1
| | | | [Import changes from Tremor (c7b26d1 2011-09-24)]
* Tremor mainline fix commit for Moz BZ #719612Nedeljko Babic2012-04-031-0/+1
| | | | [Import changes from Tremor (3daa274 2012-01-20)]
* If fuzzing swaps in a codebook that allows values outside the circularNedeljko Babic2012-04-031-2/+7
| | | | | | | range of the piecewise representation, it can overflow the lookup. Proper fix here is just a simple clamp. [Import changes from Tremor (d9c0b17 2010-10-18)]
* Fix compiler warning.Nedeljko Babic2012-04-031-1/+1
| | | | | | codebook.c:434:5: warning: suggest parentheses around '-' inside '>>' [Import changes from Tremor (ef65123 2010-10-16)]
* Additional codebook validity checks.Nedeljko Babic2012-04-031-3/+6
| | | | [Import part of the changes from Tremor (3b65200 2010-10-16)]
* Fix decoder handling of floor0 when the LSP order is 1.Nedeljko Babic2012-04-032-15/+19
| | | | | | | | | | | Header setup allows the LSP order to be as low as one, but the code in vorbis_lsp_to_curve() assumed it was at least two. This wasn't terrible in libvorbis... it would multiply a nonsense (but defined) value into the output, and nothing more. In Tremor, it referenced several completely undefined (stack) values, which could cause out-of-bounds lookup table accesses and crashes. [Impot changes from Tremor (3ada73c 2010-10-15)]
* Port r16597 from libvorbis.Nedeljko Babic2012-04-031-0/+1
| | | | | | Don't allow ordered codebooks with codeword lengths longer than 32 bits. [Import changes from Tremor (7b7f841 2010-10-14)]
* Port r16328 and r16330 from libvorbis.Nedeljko Babic2012-04-031-1/+6
| | | | | | | | ivorbisfile_example.c ignores an error code and plows ahead blindly if libvorbisidec reports the current bitstream section is bad (OV_EBADLINK). Retrying after the error crashes libvorbisidec due to the unitialized state. [Import part of the changes from Tremor (ff67c8b 2010-10-14)]
* Port the rest of r16222 from libvorbis.Nedeljko Babic2012-04-034-19/+34
| | | | | | Commit additional hardening to setup packet decode. [Import changes from Tremor (28854b5 2010-10-14)]
* Port r16218 from libvorbis.Nedeljko Babic2012-04-031-2/+10
| | | | | | Fix for https://bugzilla.mozilla.org/show_bug.cgi?id=501279 [Import changes from Tremor (ba51e86 2010-10-14)]
* Port r14984 from libvorbis.Nedeljko Babic2012-04-031-5/+7
| | | | | | Correct an accidental dereference-before-check in error cleanup in comments. [Import changes from Tremor(e847296 2010-10-13)]
* Forward port r14602 from libvorbis.Nedeljko Babic2012-04-031-1/+1
| | | | | | Correctly handle the nonsensical codebook.dim==0 case. [Import changes from Tremor (1d1f93e 2010-10-13)]
* Const-ify some static data tables.Nedeljko Babic2012-04-032-13/+13
| | | | | | Moral equivalent of r15937 for libvorbis. [Import changes from Tremor (3d08906 2010-10-13)]
* Add support for MIPS in autoconfigNedeljko Babic2012-04-031-0/+26
|
* Add support for MIPS in automakeNedeljko Babic2012-04-031-3/+7
|
* Check fields of oggpack_buffer structureNedeljko Babic2012-04-031-2/+13
| | | | Add WinMain definition for WIN32_WCE
* Add explicit casts of pointers to voidNedeljko Babic2012-04-031-4/+4
| | | | Some compilers expect explicit cast of pointers to void in appropriate pointer types.
* Add typedefs for WIN32_WCENedeljko Babic2012-04-031-1/+11
|
* Add flag check for conditional compilation of code (regarding MIPS ↵Nedeljko Babic2012-04-031-2/+2
| | | | optimization).
* Add ifdefs for conditional compilation of code (regarding MIPS optimization).Nedeljko Babic2012-04-031-1/+5
|
* Add ifdefs for conditional compilation of code (regarding MIPS optimization)Nedeljko Babic2012-04-031-2/+6
|
* Add ifdefs for conditional compilation of code (regarding MIPS optimization).Nedeljko Babic2012-04-031-12/+16
| | | | Add small optimization in case 3 of decode_map function.
* Add folder with assembly files for MIPSNedeljko Babic2012-04-033-0/+2542
| | | | | | File decode_mapMIPS.S can be used on all MIPS32R2 architectures. Files floor1_inverse2MIPS.S and mdct_backwardMIPS.S can be used on MIPS32R2 architectures that support MIPS DSP ASE rev 1
* Comments from Android code added for clarificationNedeljko Babic2012-02-241-0/+2
|
* Update testtremor app to have compile time option to output in (almost legal)tremoloRobin Watts2010-06-201-0/+38
| | | | | | | | WAV format. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17299 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Whitespace tidyingRobin Watts2010-06-201-3/+3
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17298 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix typo in end of mdct routine that was causing corruption of someRobin Watts2010-06-201-2/+1
| | | | | | | | streams - thanks to Stuart Fisher for the pointer to the problem stream. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17297 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add framing.c fix from Stuart Fisher. Don't link ogg_page's with no bodyRobin Watts2010-06-011-5/+7
| | | | | | | | | into the stream chain. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17264 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Visual Studio 2005 project files and compile fixes.Cristian Adam2010-06-0113-62/+1960
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17263 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Remove double free caused by previous commits vorbis dsp interface changes.Robin Watts2010-05-301-2/+0
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17260 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add final ARM code sections for Tremolo decode.Robin Watts2010-05-305-58/+575
| | | | | | | | | Add missing couple of vorbis dsp entrypoints. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17258 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Move back to ARM format assembler files, but add a script to convertRobin Watts2010-05-298-2049/+2395
| | | | | | | | | | from arm2gnu format. Update revised temporary makefile that now invokes the conversion script as required. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17254 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Address a stack blowout in _make_decode_table on WinCE.Robin Watts2010-05-291-6/+13
| | | | | | | | | | | test_genesis.ogg has entries=6561, and used_entries=81. This results in the code attempting to alloca 54K on the stack. Instead change the code to use malloc. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17253 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Convert ARM assembler files to GNU format.Robin Watts2010-05-238-1943/+2511
| | | | | | | | | | | | | | | Add simple test app testtremor.c. Add temporary test Makefile, Makefile2 that builds testtremor for a beagleboard. Testing with Makefile2/testtremor shows that the C version and the version with ARM code differs by a maximum of 1 in the output due to different rounding behaviour. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17244 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Compile fixes for ARM version.Robin Watts2010-05-232-11/+44
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17243 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Initial commit of merged bitwise functions from Tremolo.Robin Watts2010-05-174-2/+380
| | | | | | | | For now arm configuration -> _ARM_ASSEM_ -> little endian ARM architecture. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17227 0101bb08-14d6-0310-b084-bc0e0c8e3800
* ARM implementation of floor1 render_line functions (normal and LOW_ACCURACYRobin Watts2010-05-154-2/+89
| | | | | | | | versions). git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17219 0101bb08-14d6-0310-b084-bc0e0c8e3800
* ARM mdct implementations, and changes to the C code to call them.Robin Watts2010-05-156-6/+2474
| | | | | | | | | | | | | Also changes in the configure.ac file to correctly include the assembly files on ARM targets. This is 'my first autoconf' stuff, so any hints/pointers on how to do it better gratefully accepted. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17218 0101bb08-14d6-0310-b084-bc0e0c8e3800
* First commit of stuff from Tremolo. C-only changes to start with.Robin Watts2010-05-159-135/+223
| | | | | | | | | | | | | | | | | | | Mostly squashing of warnings with some explicit casts, and removing some variables that are never used. Optimisations to render_line. Various checks for (m)alloc failures and out of range inputs. Change to use explicit dec_buf rather than repeated calls to alloca. Change to use dec_method/switch rather than nested if. Reorder of contents of codebook struct in preparation for ARM code. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17217 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Create a branch to merge Tremolo optimisations intoRobin Watts2010-05-1588-0/+15204
git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremolo@17216 0101bb08-14d6-0310-b084-bc0e0c8e3800