summaryrefslogtreecommitdiff
path: root/libavutil/lzo.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-2/+4
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/lzo: split test out into a separate fileJames Almer2016-05-131-55/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/lzo: fix resource leakRuoyu2014-10-111-0/+1
| | | | | Signed-off-by: Ruoyu <liangry@ucweb.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/lzo: allow selecting the compression function in the test codeMichael Niedermayer2014-06-241-1/+11
|
* Merge commit 'ccda51b14c0fcae2fad73a24872dce75a7964996'Michael Niedermayer2014-06-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ccda51b14c0fcae2fad73a24872dce75a7964996': lzo: Handle integer overflow Conflicts: libavutil/lzo.c This is basically not merging changes due to this being fixed differently in FFmpeg See: d6af26c55c1ea30f85a7d9edbc373f53be1743ee See: cf2b7c01f81c1fb3283a1390c0ca9a2f81f4f4a8 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: Handle integer overflowLuca Barbato2014-06-231-1/+9
| | | | | | | | | | | | | | get_len can overflow for specially crafted payload. Reported-By: Don A. Baley <donb@securitymouse.com> CC: libav-stable@libav.org
* | avutil/lzo: add asserts to be double sure against overflowsMichael Niedermayer2014-06-231-0/+3
| | | | | | | | | | | | | | These asserts cannot fail since d6af26c55c1ea30f85a7d9edbc373f53be1743ee Based-on: ccda51b14c0fcae2fad73a24872dce75a7964996 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/lzo: Fix integer overflowMichael Niedermayer2014-06-231-1/+6
| | | | | | | | | | | | | | | | | | Embargoed-till: 2014-06-27 requested by researcher, but embargo broken by libav today (git and mailing list) Fixes: LMS-2014-06-16-4 Found-by: "Don A. Bailey" <donb@securitymouse.com> See: ccda51b14c0fcae2fad73a24872dce75a7964996 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6'Michael Niedermayer2013-03-161-2/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit 'ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6': lzo: fix overflow checking in copy_backptr() flacdec: simplify bounds checking in flac_probe() atrac3: avoid oversized shifting in decode_bytes() Conflicts: libavformat/flacdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: fix overflow checking in copy_backptr()Xi Wang2013-03-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The check `src > dst' in the form `&c->out[-back] > c->out' invokes pointer overflow, which is undefined behavior in C. Remove the check. Also replace `&c->out[-back] < c->out_start' with a safe form `c->out - c->out_start < back' to avoid overflow. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-251-43/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avutil: Make LZO decoder code configure-time selectable avutil: Move memcpy_backptr() to mem.c configure: detect parisc64 automatically configure: detect ppc64 automatically configure: detect mips64 automatically configure: generalise 64-bit test smoothstreamingenc: Don't assume streams start from timestamp 0 Conflicts: configure libavutil/Makefile libavutil/lzo.c libavutil/lzo.h libavutil/mem.c libavutil/mem.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: Move memcpy_backptr() to mem.cDiego Biurrun2012-10-251-43/+1
| | | | | | | | The function is used elsewhere and does not belong with the LZO code.
* | Merge commit 'd82f188504410fdfa446c5682c128c31bb5851a4'Michael Niedermayer2012-10-241-8/+8
|\ \ | |/ | | | | | | | | | | | | | | | | * commit 'd82f188504410fdfa446c5682c128c31bb5851a4': Remove need for padding in av_memcpy_backptr() Conflicts: libavutil/lzo.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove need for padding in av_memcpy_backptr()Mans Rullgard2012-10-231-8/+8
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Merge commit 'ceb754d041f5f6327fd9195a5f43575af9516daa'Michael Niedermayer2012-10-241-20/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ceb754d041f5f6327fd9195a5f43575af9516daa': lzo: Use AV_COPY*U macros where appropriate prepare 9_beta2 release dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU intreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16 mp3: properly forward mp_decode_frame errors Conflicts: RELEASE libavcodec/mpegaudiodec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: Use AV_COPY*U macros where appropriateDiego Biurrun2012-10-231-20/+8
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-201-43/+53
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * qatar/master: configure: Group math functions into a separate variable avutil/mem: K&R formatting cosmetics avutil/lzo: K&R formatting cosmetics Conflicts: configure libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil/lzo: K&R formatting cosmeticsDiego Biurrun2012-10-201-43/+53
| |
* | Merge commit 'c9ef43215c7d68c2cdcdbe02287aa114f27a32ed'Michael Niedermayer2012-10-201-3/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c9ef43215c7d68c2cdcdbe02287aa114f27a32ed': fate-vc1: add dependencies ARM: fix overreads in neon h264 chroma mc rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet gitignore: ignore files created by msvc fate: Add proper dependencies for the tests in video.mak configure: Disable Snow decoder and encoder by default lzo: Drop obsolete fast_memcpy reference build: Drop OBJS declaration for non-existing PCM_DVD encoder mpeg4videodec: Disable frame multithreading for GMC, its not implemented at all Conflicts: libavcodec/mpegvideo.c libavformat/rtsp.c tests/fate/microsoft.mak tests/fate/video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: Drop obsolete fast_memcpy referenceDiego Biurrun2012-10-191-3/+2
| |
| * libavutil: Remove broken and pointless lzo test program.Diego Biurrun2012-03-261-44/+0
| |
* | Avoid av_memcpy_backptr hang without extra branch.Reimar Döffinger2011-12-301-3/+3
| | | | | | | | | | | | | | | | This only happens for a "back" value of 0 which is invalid anyway, but lcldec does not properly validate input. Also extend the documentation to specify valid values. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lzo: fix memcpy_backptr() with 0 offsetMichael Niedermayer2011-12-241-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-061-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mov: Don't av_malloc(0). avconv: only allocate 1 AVFrame per input stream avconv: fix memleaks due to not freeing the AVFrame for audio h264-fate: remove -strict 1 except where necessary (mr4/5-tandberg). misc Doxygen markup improvements doxygen: eliminate Qt-style doxygen syntax g722: Add a regression test for muxing/demuxing in wav g722: Change bits per sample to 4 g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample api-example: update to use avcodec_decode_audio4() avplay: use avcodec_decode_audio4() avplay: use a separate buffer for playing silence avformat: use avcodec_decode_audio4() in avformat_find_stream_info() avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3() mov: Allow empty stts atom. doc: document preferred Doxygen syntax and make patcheck detect it Conflicts: avconv.c ffplay.c libavcodec/mlpdec.c libavcodec/version.h libavformat/mov.c tests/codec-regression.sh tests/fate/h264.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: eliminate Qt-style doxygen syntaxDiego Biurrun2011-12-051-3/+3
| |
* | av_lzo1x_decode: properly handle negative buffer length.Reimar Döffinger2011-11-051-3/+3
| | | | | | | | | | | | | | Treating them like 0 is safest, current code would invoke undefined pointer arithmetic behaviour in this case. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-06-241-11/+11
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: Consistently use '@' instead of '\' for Doxygen markup. Use av_printf_format to check the usage of printf style functions Add av_printf_format, for marking printf style format strings and their parameters ARM: enable thumb for Cortex-M* CPUs nsvdec: Propagate error values instead of returning 0 in nsv_read_header(). build: remove SRC_PATH_BARE variable build: move basic rules and variables to main Makefile build: move special targets to end of main Makefile lavdev: improve feedback in case of invalid frame rate/size vfwcap: prefer "framerate_q" over "fps" in vfw_read_header() v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters() fbdev: prefer "framerate_q" over "fps" in device context bktr: prefer "framerate" over "fps" for grab_read_header() ALSA: implement channel layout for playback. alsa: support unsigned variants of already supported signed formats. alsa: add support for more formats. ARM: allow building in Thumb2 mode Conflicts: common.mak doc/APIchanges libavcodec/vdpau.h libavdevice/alsa-audio-common.c libavdevice/fbdev.c libavdevice/libdc1394.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-241-11/+11
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Handle input or output len of 0 properly in lzo decoder.Reimar Döffinger2011-01-241-0/+8
| | | | | | | | (cherry picked from commit 7d5082600ee63d879c2a325974ea09c8ace05019)
* | Handle input or output len of 0 properly in lzo decoder.Reimar Döffinger2011-01-241-0/+8
|/
* Give liblzo benchmark conditionals more descriptive names and add convenienceDiego Biurrun2009-04-091-2/+8
| | | | | | definitions along with instructions for changing them. Originally committed as revision 18387 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace manual setting of the removed av_log_level variable by theDiego Biurrun2009-04-021-1/+1
| | | | | | corresponding call to av_log_set_level(). Originally committed as revision 18310 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove more functions disabled by major version bump.Reimar Döffinger2009-03-081-6/+0
| | | | Originally committed as revision 17876 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add necessary header for LIBAVUTIL_VERSION_MAJOR, fixes the warning:Diego Biurrun2009-02-021-0/+2
| | | | | | libavutil/lzo.c:235:5: warning: "LIBAVUTIL_VERSION_MAJOR" is not defined Originally committed as revision 16962 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move doxygen documentation from lzo.c to lzo.hReimar Döffinger2009-02-021-20/+0
| | | | Originally committed as revision 16949 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to LZO stuff and thus make it officially part of the public API.Reimar Döffinger2009-02-021-11/+17
| | | | | | Keep lzo1x_decode until the next major version bump for binary compatibility. Originally committed as revision 16946 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IIDiego Biurrun2009-01-281-1/+1
| | | | Originally committed as revision 16848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IDiego Biurrun2009-01-281-10/+10
| | | | Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_memcpy_backptr(): deliberately overlapping memcpy variant.Peter Ross2008-08-061-3/+21
| | | | Originally committed as revision 14641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* LZO decoder input is constReimar Döffinger2008-02-011-5/+5
| | | | Originally committed as revision 11797 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move lzo decompression to libavutilReimar Döffinger2007-01-311-0/+273
Originally committed as revision 7789 to svn://svn.ffmpeg.org/ffmpeg/trunk