summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Backport codebook out-of-bounds write fix from main branchlowmemMiika-Petteri Matikainen2019-08-221-3/+4
| | | | | | | | | | Backports commit 562307a4a7082e24553f3d2c55dab397a17c4b4f from tremor main branch: Prevent out-of-bounds write in codebook decoding. Codebooks that are not an exact divisor of the partition size are now truncated to fit within the partition.
* Backport floo0 out-of-bounds write fix from main branchMiika-Petteri Matikainen2019-08-222-7/+11
| | | | | | | | | | | | | | | | | | | Backports commit 80661a13c93a01f25b8df4e89fecad0eee69ddcc from tremor main branch: floor0 code could potentially use a book where the number of vals it 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 for each call variant.
* Fix for Moz BZ #719612 for tremor-lowmemMonty2012-01-202-2/+3
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@18154 0101bb08-14d6-0310-b084-bc0e0c8e3800
* patch to fix a typo in the autoconf script for Tremor from brad0Monty2011-09-241-10/+1
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@18100 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Rename mergesort as it conflicts with <stdlib.h> on the BSDs.Tim Terriberry2010-09-101-2/+2
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@17380 0101bb08-14d6-0310-b084-bc0e0c8e3800
* configure: Add AM_MAINTAINER_MODE optionConrad Parker2010-04-211-0/+3
| | | | | | | | | | | | fixes the message configure: WARNING: unrecognized options: --enable-maintainer-mode at the end of configure run when one was using autogen.sh. Ported from trunk r17157, Patch by Stefan Kost git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@17159 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add entries to Version_script so that ivorbisdec is api compatible withConrad Parker2010-04-211-1/+10
| | | | | | | | normal vorbisdec. Ported from trunk r17156, Patch by Stefan Kost git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@17158 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Merge r17150,r17151,r17152 from trunk/TremorConrad Parker2010-04-203-1/+21
| | | | | | | | Add a pkgconfig file, include html docs in dist. NB. this branch has no Win32 directory. Adapted from patch by Stefan Kost. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@17154 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Update symbols listed in Version_script.inConrad Parker2010-04-201-0/+3
| | | | | | | | | | There are 3 public symbols in the headers, which are missing in the linker script and thus marked as private again. This causes issues for e.g. gstreamer (https://bugzilla.gnome.org/show_bug.cgi?id=616194). Patch by Stefan Kost git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@17153 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Propagate the symbol export patch from trunk/Tremor.Ralph Giles2007-07-232-1/+68
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@13292 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Increase defult debugging malloc head alignmentMonty2007-06-233-6/+4
| | | | | | | | | One more 'force eop' fix when speculative codebook decode runs off the end of a packet git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@13184 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix bug #340 for lowmem branchMonty2007-06-232-39/+57
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@13181 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Eliminate memory leak bugs in Tremor-lowmem (closes bug 1127)Monty2007-06-212-6/+6
| | | | | | | | Eliminate electric fence from debug Makefile; valgrind supercedes. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@13165 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add proper guarding to cases where declared floor/residue decode size is ↵Monty2007-06-212-100/+116
| | | | | | *larger* than the current blocksize. Handle according to spec. (lowmem branch) git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@13157 0101bb08-14d6-0310-b084-bc0e0c8e3800
* fix autotools build by reorderingThomas Vander Stichele2007-03-052-8/+12
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@12650 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Turn on -Wall for gcc builds.Ralph Giles2006-01-091-4/+4
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@10709 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Port of appropriate warning eliminations from trunk, correcting two Ralph Giles2006-01-091-2/+2
| | | | | | | signedness mismatches. Issue #622. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@10708 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Include os.h in mapping0.c so alloca() is available.Ralph Giles2005-05-101-0/+1
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@9260 0101bb08-14d6-0310-b084-bc0e0c8e3800
* more native eolj2005-05-103-171/+171
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@9259 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Set native eol style on the source.Ralph Giles2005-05-101-298/+298
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@9258 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Use the local headers in the example build so we work out of the box.Ralph Giles2004-06-071-2/+2
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@6816 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Remove a spurious libvorbis include. misc.h already includesRalph Giles2004-06-071-1/+0
| | | | | | | ivorbiscodec.h. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@6815 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add a small TODO file for the next stepsMonty2003-11-201-0/+2
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5622 0101bb08-14d6-0310-b084-bc0e0c8e3800
* comment out (disable) memory statistic gathering.Monty2003-11-201-1/+1
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5620 0101bb08-14d6-0310-b084-bc0e0c8e3800
* kill off another compiler warning due to a (harmless) miscast.Monty2003-11-201-4/+4
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5619 0101bb08-14d6-0310-b084-bc0e0c8e3800
* A few last compiler warnings, replace reliance on libc quicksort in floor1.Monty2003-11-205-19/+7
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5617 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Commit several codebook handling fixes from Tremor-NeurosMonty2003-11-202-17/+58
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5616 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Roll a number of Tremor-Neuros fixes back into mainline Tremor;Monty2003-11-206-25/+544
| | | | | | | mostly bitwise end-of-packet behavior, fleshing out 64kHz limit support git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@5615 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Forgot to add dsp.cMonty2003-05-242-2/+300
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4791 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Eliminate vorbis_info and codec_setup caching for all links; makesMonty2003-04-296-247/+255
| | | | | | | | | seeks more expensive, but does not affect decode speed. Correct a number of bugs exposed by seeking. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4652 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Eliminate two small (redundant) dB lookups in floor0 and use theMonty2003-04-237-207/+115
| | | | | | | version in floor1. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4632 0101bb08-14d6-0310-b084-bc0e0c8e3800
* copyrights :-)Monty2003-04-222-2/+3
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4626 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Kill some type size bugsMonty2003-04-221-1/+1
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4625 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Scary data flow rearrangement with mdct refoldingMonty2003-04-2213-822/+149
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4624 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Partial read support in the on-the-fly unrollMonty2003-04-222-40/+59
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4623 0101bb08-14d6-0310-b084-bc0e0c8e3800
* mdct work continued; no working space, reduced extraneous load/storeMonty2003-04-212-216/+250
| | | | | | | | steps. pcmout must now be more tightly integrated with vorbisfile; last stage of mdct renders directly into 16 bit PCM output. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4621 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Memory reduction work: completely in-place mdct; requires noMonty2003-04-191-175/+101
| | | | | | | additional working space. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4618 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Hide internal decode structures from vorbisfile structure; gives aMonty2003-04-145-57/+62
| | | | | | | better shot at binary compat from release to release. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4611 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Pared down mapping info structuresMonty2003-04-142-37/+60
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4610 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Low accuracy version of floor0.c fixedMonty2003-04-141-5/+20
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4609 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Kill a floor0 bug; need to repair _LOW_ACCURACY_ for floor0 nextMonty2003-04-1412-377/+168
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4608 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Continuing reduction work; res012.c completedMonty2003-04-1312-522/+281
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4607 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Floor 1 memory reduction; no longer blindly allocate the maximumMonty2003-04-112-34/+56
| | | | | | | possible amount of needed memory when typical case is much lower. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4605 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct a scaling bug in floor 1Monty2003-04-107-23/+19
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4601 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Initial work on floor memory usage reduction.Monty2003-04-106-240/+165
| | | | | | | | | | Floor 0 more or less complete; eliminated all lookups, reduced stack slightly *and* the code got faster :-) Monty git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4600 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Rather than dealing with autoconf (which can't do cross-compile testsMonty2003-04-093-4/+9
| | | | | | | | | | anyway), throw OV_EIMPL on architectures where right shift of a signed int is not arithmetic. Monty git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4598 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Minor cleanup. One last thing to do: add configure test for >> ofMonty2003-04-091-21/+7
| | | | | | | signed integer being arithmetic or logical shift. git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4597 0101bb08-14d6-0310-b084-bc0e0c8e3800
* VFLOAT hacks no longer neededMonty2003-04-091-65/+0
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4596 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Codebook needs minor cleanup... but all the opt work is in place and tested.Monty2003-04-093-59/+55
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4595 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Incremental; codebook work is nearly finished.Monty2003-04-095-420/+562
| | | | git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@4594 0101bb08-14d6-0310-b084-bc0e0c8e3800